ramips: fix BUG_ON on mtk-mmc driver probe
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Apr 2018 15:41:10 +0000 (17:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Apr 2018 16:12:30 +0000 (18:12 +0200)
commit6a621f4bd900b42fb1560691d676d0b3cc51b731
treee4b8df081f059bf879bc38ab34b4912d8f9ee7c6
parentf9b2d369a63b32d6d114cbf1b43d4d600af4aeb6
ramips: fix BUG_ON on mtk-mmc driver probe

Our .dts files only have one device defined and this is unlikely to
change, so statically initialize host->id to 0.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c
target/linux/ramips/files-4.9/drivers/mmc/host/mtk-mmc/sd.c