From: Lin Huang Date: Fri, 8 Jan 2016 13:45:59 +0800 Subject: [U-Boot] [PATCH] mmc: rockchip: the non-removable property must point to emmc Message-ID: <1452231959-16447-1-git-send-email-hl@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de the non-removable property point to sdcard before, it is wrong, it must point to emmc, correct it. Signed-off-by: Lin Huang --- drivers/mmc/rockchip_dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index aeaec6c..870b2fe 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -51,8 +51,8 @@ static int rockchip_dwmmc_ofdata_to_platdata(struct udevice *dev) host->priv = 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 = 1; + if (!fdtdec_get_bool(gd->fdt_blob, dev->of_offset, "non-removable")) + host->dev_index = 0; return 0; } -- 1.9.1