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/mach-mx3 | |
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/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/clock-imx31.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/clock-imx35.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) |