From: huang lin Date: Fri, 8 Jan 2016 06:06:49 +0000 (+0800) Subject: mmc: rockchip: the non-removable property must point to emmc X-Git-Tag: v2016.03-rc1~305^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6579385b468b642596d18fc0716681b76e1d0799;p=platform%2Fkernel%2Fu-boot.git mmc: rockchip: the non-removable property must point to emmc the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang Acked-by: Simon Glass Tested-by: Simon Glass --- diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index aeaec6c..9b4268e 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -52,6 +52,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev) /* use non-removeable as sdcard and emmc as judgement */ if (fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable")) + host->dev_index = 0; + else host->dev_index = 1; return 0;