mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 12:44:23 +08:00
mmc: sdhci: return error when failed add_sdhci().
If failed the add_host(), it is reasonable that return value of add_sdhci(). Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
1f4ca2547c
commit
a68aac4947
@ -51,6 +51,5 @@ int mv_sdh_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks)
|
||||
host->version = sdhci_readl(host, SDHCI_HOST_VERSION - 2) >> 16;
|
||||
else
|
||||
host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
|
||||
add_sdhci(host, max_clk, min_clk);
|
||||
return 0;
|
||||
return add_sdhci(host, max_clk, min_clk);
|
||||
}
|
||||
|
@ -94,6 +94,5 @@ int s5p_sdhci_init(u32 regbase, int index, int bus_width)
|
||||
|
||||
host->host_caps = MMC_MODE_HC;
|
||||
|
||||
add_sdhci(host, 52000000, 400000);
|
||||
return 0;
|
||||
return add_sdhci(host, 52000000, 400000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user