mmc: dw_mmc: fix num_slots setting
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 2 Feb 2016 06:11:25 +0000 (14:11 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:11 +0000 (11:03 +0100)
commit8a629d26f02351539dd1760c75656065b881cd9a
tree93c57647f17e72bfb773e240146a5aa76e70eee1
parent345efee3541f5931fbbd0f0bcebe9baa3ff2f5c2
mmc: dw_mmc: fix num_slots setting

This patch make num_slots to 1 if pdata->num_slot is not
defined. Meanwhile, we need to make sure num_slots should
not larger that the supported slots

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c