Skip to content

Commit

Permalink
mmc: dw_mmc: fix the wrong condition checking
Browse files Browse the repository at this point in the history
When num-slots is lower than 1, it's right that should be returned -ENODEV.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
  • Loading branch information
Jaehoon Chung authored and Ulf Hansson committed Aug 17, 2015
1 parent 575c319 commit 9e747b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e747b7

Please sign in to comment.