projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
575c319
)
mmc: dw_mmc: fix the wrong condition checking
author
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 6 Aug 2015 07:23:24 +0000
(16:23 +0900)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 17 Aug 2015 10:45:26 +0000
(12:45 +0200)
When num-slots is lower than 1, it's right that should be returned -ENODEV.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/host/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index 3c0e1993e737bfa04459eda8ad10429fbbbd45f7..de88e640097e61c2ea659be696be1bf3e17f58ca 100644
(file)
--- 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;