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>
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 = 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;