diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-01-19 15:53:30 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:50:17 -0500 |
commit | 5c9e02b1abcb227f47529ad72cc4a3234cddae49 (patch) | |
tree | ac8323c3b31f77b008d42b1dd26980a47f32a09c | |
parent | 4c5e1946b5f89c33e3bc8ed73fa7ba8f31e37cc5 (diff) |
[ARM] omap: MMC: convert clocks to match by devid and conid
Convert OMAP MMC driver to match clocks using the device ID and a
connection ID rather than a clock name. This allows us to eliminate
the OMAP1/OMAP2 differences for the function clock.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-omap1/clock.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock24xx.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/omap.c | 7 |
3 files changed, 6 insertions, 9 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 758abaadaf37..3015e8529658 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -124,8 +124,8 @@ static struct omap_clk omap_clks[] = { | |||
124 | CLK(NULL, "mclk", &mclk_16xx, CK_16XX), | 124 | CLK(NULL, "mclk", &mclk_16xx, CK_16XX), |
125 | CLK(NULL, "bclk", &bclk_1510, CK_1510 | CK_310), | 125 | CLK(NULL, "bclk", &bclk_1510, CK_1510 | CK_310), |
126 | CLK(NULL, "bclk", &bclk_16xx, CK_16XX), | 126 | CLK(NULL, "bclk", &bclk_16xx, CK_16XX), |
127 | CLK("mmci-omap.0", "mmc_ck", &mmc1_ck, CK_16XX | CK_1510 | CK_310), | 127 | CLK("mmci-omap.0", "fck", &mmc1_ck, CK_16XX | CK_1510 | CK_310), |
128 | CLK("mmci-omap.1", "mmc_ck", &mmc2_ck, CK_16XX), | 128 | CLK("mmci-omap.1", "fck", &mmc2_ck, CK_16XX), |
129 | /* Virtual clocks */ | 129 | /* Virtual clocks */ |
130 | CLK(NULL, "mpu", &virtual_ck_mpu, CK_16XX | CK_1510 | CK_310), | 130 | CLK(NULL, "mpu", &virtual_ck_mpu, CK_16XX | CK_1510 | CK_310), |
131 | CLK("i2c_omap.1", "i2c_fck", &i2c_fck, CK_16XX | CK_1510 | CK_310), | 131 | CLK("i2c_omap.1", "i2c_fck", &i2c_fck, CK_16XX | CK_1510 | CK_310), |
diff --git a/arch/arm/mach-omap2/clock24xx.c b/arch/arm/mach-omap2/clock24xx.c index 6a6278e5bbce..aca4ca42bf48 100644 --- a/arch/arm/mach-omap2/clock24xx.c +++ b/arch/arm/mach-omap2/clock24xx.c | |||
@@ -178,8 +178,8 @@ static struct omap_clk omap24xx_clks[] = { | |||
178 | CLK(NULL, "wdt3_fck", &wdt3_fck, CK_242X), | 178 | CLK(NULL, "wdt3_fck", &wdt3_fck, CK_242X), |
179 | CLK(NULL, "mspro_ick", &mspro_ick, CK_243X | CK_242X), | 179 | CLK(NULL, "mspro_ick", &mspro_ick, CK_243X | CK_242X), |
180 | CLK(NULL, "mspro_fck", &mspro_fck, CK_243X | CK_242X), | 180 | CLK(NULL, "mspro_fck", &mspro_fck, CK_243X | CK_242X), |
181 | CLK(NULL, "mmc_ick", &mmc_ick, CK_242X), | 181 | CLK("mmci-omap.0", "ick", &mmc_ick, CK_242X), |
182 | CLK(NULL, "mmc_fck", &mmc_fck, CK_242X), | 182 | CLK("mmci-omap.0", "fck", &mmc_fck, CK_242X), |
183 | CLK(NULL, "fac_ick", &fac_ick, CK_243X | CK_242X), | 183 | CLK(NULL, "fac_ick", &fac_ick, CK_243X | CK_242X), |
184 | CLK(NULL, "fac_fck", &fac_fck, CK_243X | CK_242X), | 184 | CLK(NULL, "fac_fck", &fac_fck, CK_243X | CK_242X), |
185 | CLK(NULL, "eac_ick", &eac_ick, CK_242X), | 185 | CLK(NULL, "eac_ick", &eac_ick, CK_242X), |
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 67d7b7fef084..15eb88343760 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
@@ -1461,16 +1461,13 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
1461 | goto err_ioremap; | 1461 | goto err_ioremap; |
1462 | 1462 | ||
1463 | if (cpu_is_omap24xx()) { | 1463 | if (cpu_is_omap24xx()) { |
1464 | host->iclk = clk_get(&pdev->dev, "mmc_ick"); | 1464 | host->iclk = clk_get(&pdev->dev, "ick"); |
1465 | if (IS_ERR(host->iclk)) | 1465 | if (IS_ERR(host->iclk)) |
1466 | goto err_free_mmc_host; | 1466 | goto err_free_mmc_host; |
1467 | clk_enable(host->iclk); | 1467 | clk_enable(host->iclk); |
1468 | } | 1468 | } |
1469 | 1469 | ||
1470 | if (!cpu_is_omap24xx()) | 1470 | host->fclk = clk_get(&pdev->dev, "fck"); |
1471 | host->fclk = clk_get(&pdev->dev, "mmc_ck"); | ||
1472 | else | ||
1473 | host->fclk = clk_get(&pdev->dev, "mmc_fck"); | ||
1474 | 1471 | ||
1475 | if (IS_ERR(host->fclk)) { | 1472 | if (IS_ERR(host->fclk)) { |
1476 | ret = PTR_ERR(host->fclk); | 1473 | ret = PTR_ERR(host->fclk); |