summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2015-08-06 16:23:24 +0900
committerUlf Hansson <ulf.hansson@linaro.org>2015-08-17 12:45:26 +0200
commit9e747b7e4af090a4974005f3064963026f519fcc (patch)
tree4590d0dc85dea161c20427b17bb1faec325b3aed /drivers/mmc/host/dw_mmc.c
parent575c319dfe872fc8bf1d57b244fb40f497ab3a47 (diff)
downloadop-kernel-dev-9e747b7e4af090a4974005f3064963026f519fcc.zip
op-kernel-dev-9e747b7e4af090a4974005f3064963026f519fcc.tar.gz
mmc: dw_mmc: fix the wrong condition checking
When num-slots is lower than 1, it's right that should be returned -ENODEV. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 3c0e199..de88e64 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2760,7 +2760,7 @@ int dw_mci_probe(struct dw_mci *host)
}
}
- if (host->pdata->num_slots > 1) {
+ if (host->pdata->num_slots < 1) {
dev_err(host->dev,
"Platform data must supply num_slots.\n");
return -ENODEV;
OpenPOWER on IntegriCloud