diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2010-12-07 11:16:04 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-14 03:54:19 -0500 |
commit | 2c1f4672f0711e7f23ae49cbb7541088126fe576 (patch) | |
tree | 2e72446f10f1b0a07bbe470c1f24025516f9cfe4 /arch/arm | |
parent | a96efbc1fc8e4540dc1d561bb5e42a16a7b472d5 (diff) |
watchdog: imx: use clk_get to acquire the watchdog clock
Use clk_get to acquire the watchdog clock and also avoid hardcoding the clock name.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/clock-imx21.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx25.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/clock-imx27.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/clock-imx31.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/clock-imx35.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51-mx53.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-mxc/system.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/clock-imx21.c b/arch/arm/mach-imx/clock-imx21.c index cf15ea516a72..c63a4f5ffcb6 100644 --- a/arch/arm/mach-imx/clock-imx21.c +++ b/arch/arm/mach-imx/clock-imx21.c | |||
@@ -1185,7 +1185,7 @@ static struct clk_lookup lookups[] = { | |||
1185 | _REGISTER_CLOCK(NULL, "brom", brom_clk) | 1185 | _REGISTER_CLOCK(NULL, "brom", brom_clk) |
1186 | _REGISTER_CLOCK(NULL, "emma", emma_clk[0]) | 1186 | _REGISTER_CLOCK(NULL, "emma", emma_clk[0]) |
1187 | _REGISTER_CLOCK(NULL, "slcdc", slcdc_clk[0]) | 1187 | _REGISTER_CLOCK(NULL, "slcdc", slcdc_clk[0]) |
1188 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) | 1188 | _REGISTER_CLOCK("imx2-wdt.0", NULL, wdog_clk) |
1189 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) | 1189 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) |
1190 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) | 1190 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk) |
1191 | _REGISTER_CLOCK("mxc-keypad", NULL, kpp_clk) | 1191 | _REGISTER_CLOCK("mxc-keypad", NULL, kpp_clk) |
diff --git a/arch/arm/mach-imx/clock-imx25.c b/arch/arm/mach-imx/clock-imx25.c index 9e4a5578c2fb..21ef34c501e5 100644 --- a/arch/arm/mach-imx/clock-imx25.c +++ b/arch/arm/mach-imx/clock-imx25.c | |||
@@ -296,7 +296,7 @@ static struct clk_lookup lookups[] = { | |||
296 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 296 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
297 | _REGISTER_CLOCK("imxdi_rtc.0", NULL, dryice_clk) | 297 | _REGISTER_CLOCK("imxdi_rtc.0", NULL, dryice_clk) |
298 | _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) | 298 | _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) |
299 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdt_clk) | 299 | _REGISTER_CLOCK("imx2-wdt.0", NULL, wdt_clk) |
300 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) | 300 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) |
301 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) | 301 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) |
302 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) | 302 | _REGISTER_CLOCK("sdhci-esdhc-imx.0", NULL, esdhc1_clk) |
diff --git a/arch/arm/mach-imx/clock-imx27.c b/arch/arm/mach-imx/clock-imx27.c index 2202b88667b5..f32f3b8e8ba4 100644 --- a/arch/arm/mach-imx/clock-imx27.c +++ b/arch/arm/mach-imx/clock-imx27.c | |||
@@ -667,7 +667,7 @@ static struct clk_lookup lookups[] = { | |||
667 | _REGISTER_CLOCK(NULL, "sahara2", sahara2_clk) | 667 | _REGISTER_CLOCK(NULL, "sahara2", sahara2_clk) |
668 | _REGISTER_CLOCK(NULL, "ata", ata_clk) | 668 | _REGISTER_CLOCK(NULL, "ata", ata_clk) |
669 | _REGISTER_CLOCK(NULL, "mstick", mstick_clk) | 669 | _REGISTER_CLOCK(NULL, "mstick", mstick_clk) |
670 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) | 670 | _REGISTER_CLOCK("imx2-wdt.0", NULL, wdog_clk) |
671 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) | 671 | _REGISTER_CLOCK(NULL, "gpio", gpio_clk) |
672 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | 672 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) |
673 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | 673 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) |
diff --git a/arch/arm/mach-mx3/clock-imx31.c b/arch/arm/mach-mx3/clock-imx31.c index 7cf6d29f376b..4193cf5a2637 100644 --- a/arch/arm/mach-mx3/clock-imx31.c +++ b/arch/arm/mach-mx3/clock-imx31.c | |||
@@ -530,7 +530,7 @@ static struct clk_lookup lookups[] = { | |||
530 | _REGISTER_CLOCK("imx31-cspi.2", NULL, cspi3_clk) | 530 | _REGISTER_CLOCK("imx31-cspi.2", NULL, cspi3_clk) |
531 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 531 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
532 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) | 532 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) |
533 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) | 533 | _REGISTER_CLOCK("imx2-wdt.0", NULL, wdog_clk) |
534 | _REGISTER_CLOCK(NULL, "rtc", rtc_clk) | 534 | _REGISTER_CLOCK(NULL, "rtc", rtc_clk) |
535 | _REGISTER_CLOCK(NULL, "epit", epit1_clk) | 535 | _REGISTER_CLOCK(NULL, "epit", epit1_clk) |
536 | _REGISTER_CLOCK(NULL, "epit", epit2_clk) | 536 | _REGISTER_CLOCK(NULL, "epit", epit2_clk) |
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c index 61e4a318980a..22259d955837 100644 --- a/arch/arm/mach-mx3/clock-imx35.c +++ b/arch/arm/mach-mx3/clock-imx35.c | |||
@@ -495,7 +495,7 @@ static struct clk_lookup lookups[] = { | |||
495 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) | 495 | _REGISTER_CLOCK("mxc-ehci.2", "usb", usbotg_clk) |
496 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usbotg_clk) | 496 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usbotg_clk) |
497 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usbahb_clk) | 497 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", usbahb_clk) |
498 | _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk) | 498 | _REGISTER_CLOCK("imx2-wdt.0", NULL, wdog_clk) |
499 | _REGISTER_CLOCK(NULL, "max", max_clk) | 499 | _REGISTER_CLOCK(NULL, "max", max_clk) |
500 | _REGISTER_CLOCK(NULL, "audmux", audmux_clk) | 500 | _REGISTER_CLOCK(NULL, "audmux", audmux_clk) |
501 | _REGISTER_CLOCK(NULL, "csi", csi_clk) | 501 | _REGISTER_CLOCK(NULL, "csi", csi_clk) |
diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c index b04d54daddb0..ed26de68a996 100644 --- a/arch/arm/mach-mx5/clock-mx51-mx53.c +++ b/arch/arm/mach-mx5/clock-mx51-mx53.c | |||
@@ -1110,8 +1110,8 @@ static struct clk_lookup mx51_lookups[] = { | |||
1110 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk) | 1110 | _REGISTER_CLOCK("sdhci-esdhc-imx.1", NULL, esdhc2_clk) |
1111 | _REGISTER_CLOCK(NULL, "cpu_clk", cpu_clk) | 1111 | _REGISTER_CLOCK(NULL, "cpu_clk", cpu_clk) |
1112 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) | 1112 | _REGISTER_CLOCK(NULL, "iim_clk", iim_clk) |
1113 | _REGISTER_CLOCK("imx-wdt.0", NULL, dummy_clk) | 1113 | _REGISTER_CLOCK("imx2-wdt.0", NULL, dummy_clk) |
1114 | _REGISTER_CLOCK("imx-wdt.1", NULL, dummy_clk) | 1114 | _REGISTER_CLOCK("imx2-wdt.1", NULL, dummy_clk) |
1115 | }; | 1115 | }; |
1116 | 1116 | ||
1117 | static struct clk_lookup mx53_lookups[] = { | 1117 | static struct clk_lookup mx53_lookups[] = { |
diff --git a/arch/arm/plat-mxc/system.c b/arch/arm/plat-mxc/system.c index c3972c583840..3455fc0575a6 100644 --- a/arch/arm/plat-mxc/system.c +++ b/arch/arm/plat-mxc/system.c | |||
@@ -55,7 +55,7 @@ void arch_reset(char mode, const char *cmd) | |||
55 | } else { | 55 | } else { |
56 | struct clk *clk; | 56 | struct clk *clk; |
57 | 57 | ||
58 | clk = clk_get_sys("imx-wdt.0", NULL); | 58 | clk = clk_get_sys("imx2-wdt.0", NULL); |
59 | if (!IS_ERR(clk)) | 59 | if (!IS_ERR(clk)) |
60 | clk_enable(clk); | 60 | clk_enable(clk); |
61 | wcr_enable = (1 << 2); | 61 | wcr_enable = (1 << 2); |