]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci-s3c: Use generic clock names for sdhci bus clock options
authorRajeshwari Shinde <rajeshwari.s@samsung.com>
Thu, 3 Nov 2011 01:52:58 +0000 (10:52 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 8 Nov 2011 10:44:04 +0000 (19:44 +0900)
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: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/mmc/host/sdhci-s3c.c

index 3d00e722efc9cec34e9cbdd1807863326f58e828..7551468bfc9a168810d8e97556507c377971d53d 100644 (file)
@@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
 
        for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) {
                struct clk *clk;
-               char *name = pdata->clocks[ptr];
-
-               if (name == NULL)
-                       continue;
+               char name[14];
 
+               snprintf(name, 14, "mmc_busclk.%d", ptr);
                clk = clk_get(dev, name);
                if (IS_ERR(clk)) {
-                       dev_err(dev, "failed to get clock %s\n", name);
                        continue;
                }