Skip to content
Snippets Groups Projects
Commit f0ecfc5e authored by Seung-Woo Kim's avatar Seung-Woo Kim Committed by Jaehoon Chung
Browse files

mmc: s5p_sdhci: fix to check proper pinmux id


At sdhci_get_config(), there was wrong condition to check pimux
id, so this patch fixes to check proper pinmux id.

Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
parent 38c4f0bd
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host) ...@@ -152,7 +152,7 @@ static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host)
/* Get device id */ /* Get device id */
dev_id = pinmux_decode_periph_id(blob, node); dev_id = pinmux_decode_periph_id(blob, node);
if (dev_id < PERIPH_ID_SDMMC0 && dev_id > PERIPH_ID_SDMMC3) { if (dev_id < PERIPH_ID_SDMMC0 || dev_id > PERIPH_ID_SDMMC3) {
debug("MMC: Can't get device id\n"); debug("MMC: Can't get device id\n");
return -EINVAL; return -EINVAL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment