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>
Showing
- arch/arm/mach-imx/clock-imx1.c 3 additions, 3 deletionsarch/arm/mach-imx/clock-imx1.c
- arch/arm/mach-imx/clock-imx21.c 4 additions, 4 deletionsarch/arm/mach-imx/clock-imx21.c
- arch/arm/mach-imx/clock-imx25.c 6 additions, 5 deletionsarch/arm/mach-imx/clock-imx25.c
- arch/arm/mach-imx/clock-imx27.c 7 additions, 6 deletionsarch/arm/mach-imx/clock-imx27.c
- arch/arm/mach-imx/clock-imx31.c 6 additions, 5 deletionsarch/arm/mach-imx/clock-imx31.c
- arch/arm/mach-imx/clock-imx35.c 4 additions, 3 deletionsarch/arm/mach-imx/clock-imx35.c
- arch/arm/mach-mx5/clock-mx51-mx53.c 10 additions, 8 deletionsarch/arm/mach-mx5/clock-mx51-mx53.c
- arch/arm/plat-mxc/devices/platform-imx-uart.c 4 additions, 3 deletionsarch/arm/plat-mxc/devices/platform-imx-uart.c
- drivers/tty/serial/imx.c 69 additions, 16 deletionsdrivers/tty/serial/imx.c
Loading
Please register or sign in to comment