summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clock-imx21.c
diff options
context:
space:
mode:
authorShawn Guo2011-06-24 20:04:33 +0200
committerShawn Guo2011-07-27 03:30:38 +0200
commitfe6b540ac033be6e9fa00dab1c8902dea0ad4016 (patch)
treeb71e37f03ba8e35667a1128b0d0356b46c6597b3 /arch/arm/mach-imx/clock-imx21.c
parentMerge branch 'next/devel2' of git://git.kernel.org/pub/scm/linux/kernel/git/a... (diff)
downloadkernel-qcow2-linux-fe6b540ac033be6e9fa00dab1c8902dea0ad4016.tar.gz
kernel-qcow2-linux-fe6b540ac033be6e9fa00dab1c8902dea0ad4016.tar.xz
kernel-qcow2-linux-fe6b540ac033be6e9fa00dab1c8902dea0ad4016.zip
serial/imx: get rid of the uses of cpu_is_mx1()
The patch removes all the uses of cpu_is_mx1(). Instead, it uses the .id_table of platform_driver to distinguish the uart device type, IMX1_UART and IMX21_UART. The IMX21_UART type runs on all i.mx except i.mx1. A couple of !cpu_is_mx1 logic gets turned into is_imx21_uart, as the codes wrapped there are really IMX21 type uart specific. It also removes macro MX1_UCR3_REF25 and MX1_UCR3_REF30 which are not used anywhere. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Alan Cox <alan@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-imx/clock-imx21.c')
-rw-r--r--arch/arm/mach-imx/clock-imx21.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/clock-imx21.c b/arch/arm/mach-imx/clock-imx21.c
index bf30a8c7ce6f..ee15d8c9db08 100644
--- a/arch/arm/mach-imx/clock-imx21.c
+++ b/arch/arm/mach-imx/clock-imx21.c
@@ -1162,10 +1162,10 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK(NULL, "perclk3", per_clk[2])
_REGISTER_CLOCK(NULL, "perclk4", per_clk[3])
_REGISTER_CLOCK(NULL, "clko", clko_clk)
- _REGISTER_CLOCK("imx-uart.0", NULL, uart_clk[0])
- _REGISTER_CLOCK("imx-uart.1", NULL, uart_clk[1])
- _REGISTER_CLOCK("imx-uart.2", NULL, uart_clk[2])
- _REGISTER_CLOCK("imx-uart.3", NULL, uart_clk[3])
+ _REGISTER_CLOCK("imx21-uart.0", NULL, uart_clk[0])
+ _REGISTER_CLOCK("imx21-uart.1", NULL, uart_clk[1])
+ _REGISTER_CLOCK("imx21-uart.2", NULL, uart_clk[2])
+ _REGISTER_CLOCK("imx21-uart.3", NULL, uart_clk[3])
_REGISTER_CLOCK(NULL, "gpt1", gpt_clk[0])
_REGISTER_CLOCK(NULL, "gpt1", gpt_clk[1])
_REGISTER_CLOCK(NULL, "gpt1", gpt_clk[2])