Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e747b7e authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Ulf Hansson
Browse files

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: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 575c319d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;