Commit 4346b6d9 authored by Rajeshwari Shinde's avatar Rajeshwari Shinde Committed by Kukjin Kim

mmc: sdhci-s3c: Use generic clock names for sdhci bus clock options

This patch modifies the driver to stop depending on the clock names
being passed from the platform and switch over to bus clock lookup
using generic clock names.
Signed-off-by: default avatarRajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: default avatarChris Ball <cjb@laptop.org>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent a361d10a
...@@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev) ...@@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) { for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) {
struct clk *clk; struct clk *clk;
char *name = pdata->clocks[ptr]; char name[14];
if (name == NULL)
continue;
snprintf(name, 14, "mmc_busclk.%d", ptr);
clk = clk_get(dev, name); clk = clk_get(dev, name);
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
dev_err(dev, "failed to get clock %s\n", name);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment