mmc: dw_mmc: fix the wrong condition check of getting num-slots from DT
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 21 Jul 2017 08:39:56 +0000 (16:39 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Jul 2017 13:57:30 +0000 (15:57 +0200)
commit16f5df8b5d71ef2eaeac067806de7ebd6df3f2d0
treef0eca0883e3304041e3b7afed17e2ad0a6c8814b
parent36acbd9e8377c27570b887e2332a5e1f0b140e16
mmc: dw_mmc: fix the wrong condition check of getting num-slots from DT

Change to print the information about when the deprecated "num-slots" DT
binding is being used, as to avoid confusion when browsing the log:

dwmmc_rockchip fe320000.dwmmc: 'num-slots' was deprecated.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Fixes: d30a8f7bdf64 ("mmc: dw_mmc: deprecated the "num-slots" property")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c