projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: fix BUG_ON on mtk-mmc driver probe
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
files-4.9
/
drivers
/
mmc
/
host
/
mtk-mmc
/
sd.c
diff --git
a/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c
b/target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c
index daedc621bc088492b2ac0cda60103e896014cbe0..ebfdc065c1accf69d6ecc33655c75d64879fcde7 100644
(file)
--- a/
target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c
+++ b/
target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c
@@
-2799,9
+2799,7
@@
static int msdc_drv_probe(struct platform_device *pdev)
host = mmc_priv(mmc);
host->hw = hw;
host->mmc = mmc;
host = mmc_priv(mmc);
host->hw = hw;
host->mmc = mmc;
- BUG_ON(pdev->id < -1);
- BUG_ON(pdev->id >= ARRAY_SIZE(drv_mode));
- host->id = (pdev->id == -1) ? 0 : pdev->id;
+ host->id = 0;
host->error = 0;
host->irq = irq;
host->base = (unsigned long) base;
host->error = 0;
host->irq = irq;
host->base = (unsigned long) base;