From: Jaehoon Chung Date: Thu, 6 Aug 2015 07:23:24 +0000 (+0900) Subject: mmc: dw_mmc: fix the wrong condition checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e747b7e4af090a4974005f3064963026f519fcc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 3c0e1993e737..de88e640097e 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;