提交 9e747b7e 编写于 作者: J Jaehoon Chung 提交者: Ulf Hansson

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: NJaehoon Chung <jh80.chung@samsung.com>
上级 575c319d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册