ARM: imx: rename mxc_uart_devicex to follow a common naming scheme
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 11 Jun 2010 07:08:02 +0000 (09:08 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 30 Jun 2010 06:59:43 +0000 (08:59 +0200)
Addionally remove an unneeded include.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/mach-imx/devices.c
arch/arm/mach-imx/devices.h
arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
arch/arm/mach-imx/mach-cpuimx27.c
arch/arm/mach-imx/mach-imx27lite.c
arch/arm/mach-imx/mach-mx21ads.c
arch/arm/mach-imx/mach-mx27_3ds.c
arch/arm/mach-imx/mach-mx27ads.c
arch/arm/mach-imx/mach-mxt_td60.c
arch/arm/mach-imx/mach-pca100.c
arch/arm/mach-imx/mach-pcm038.c

index 08ae763d9db0ebb4f281e20dc39599a73082f81f..b37280561a3f7a2cc2a894d3f82d4f198593476a 100644 (file)
@@ -38,7 +38,6 @@
 #include <mach/hardware.h>
 #include <mach/common.h>
 #include <mach/mmc.h>
-#include <mach/imx-uart.h>
 
 #include "devices.h"
 
@@ -426,7 +425,7 @@ struct platform_device mxc_usbh2 = {
 DEFINE_IMX_SSI_DEVICE(0, 1, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1);
 DEFINE_IMX_SSI_DEVICE(1, 2, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1);
 
-#define DEFINE_IMX_UART_DEVICE(n, baseaddr, irq)                       \
+#define DEFINE_IMX2x_UART_DEVICE(n, baseaddr, irq)                     \
        static struct resource imx2x_uart_resources ## n[] = {          \
                {                                                       \
                        .start = baseaddr,                              \
@@ -439,21 +438,21 @@ DEFINE_IMX_SSI_DEVICE(1, 2, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1);
                },                                                      \
        };                                                              \
                                                                        \
-       struct platform_device mxc_uart_device ## n = {                 \
+       struct platform_device imx2x_uart_device ## n = {               \
                .name = "imx-uart",                                     \
                .id = n,                                                \
                .num_resources = ARRAY_SIZE(imx2x_uart_resources ## n), \
                .resource = imx2x_uart_resources ## n,                  \
        }
 
-DEFINE_IMX_UART_DEVICE(0, MX2x_UART1_BASE_ADDR, MX2x_INT_UART1);
-DEFINE_IMX_UART_DEVICE(1, MX2x_UART2_BASE_ADDR, MX2x_INT_UART2);
-DEFINE_IMX_UART_DEVICE(2, MX2x_UART3_BASE_ADDR, MX2x_INT_UART3);
-DEFINE_IMX_UART_DEVICE(3, MX2x_UART4_BASE_ADDR, MX2x_INT_UART4);
+DEFINE_IMX2x_UART_DEVICE(0, MX2x_UART1_BASE_ADDR, MX2x_INT_UART1);
+DEFINE_IMX2x_UART_DEVICE(1, MX2x_UART2_BASE_ADDR, MX2x_INT_UART2);
+DEFINE_IMX2x_UART_DEVICE(2, MX2x_UART3_BASE_ADDR, MX2x_INT_UART3);
+DEFINE_IMX2x_UART_DEVICE(3, MX2x_UART4_BASE_ADDR, MX2x_INT_UART4);
 
 #ifdef CONFIG_MACH_MX27
-DEFINE_IMX_UART_DEVICE(4, MX27_UART5_BASE_ADDR, MX27_INT_UART5);
-DEFINE_IMX_UART_DEVICE(5, MX27_UART6_BASE_ADDR, MX27_INT_UART6);
+DEFINE_IMX2x_UART_DEVICE(4, MX27_UART5_BASE_ADDR, MX27_INT_UART5);
+DEFINE_IMX2x_UART_DEVICE(5, MX27_UART6_BASE_ADDR, MX27_INT_UART6);
 #endif
 
 /* GPIO port description */
index 84ed51380174ebd6cadaef60f19245ede9df7782..65c4a435b956e24b505acc8f5e28f7b0327f3eab 100644 (file)
@@ -6,12 +6,14 @@ extern struct platform_device mxc_gpt4;
 extern struct platform_device mxc_gpt5;
 #endif
 extern struct platform_device mxc_wdt;
-extern struct platform_device mxc_uart_device0;
-extern struct platform_device mxc_uart_device1;
-extern struct platform_device mxc_uart_device2;
-extern struct platform_device mxc_uart_device3;
-extern struct platform_device mxc_uart_device4;
-extern struct platform_device mxc_uart_device5;
+extern struct platform_device imx2x_uart_device0;
+extern struct platform_device imx2x_uart_device1;
+extern struct platform_device imx2x_uart_device2;
+extern struct platform_device imx2x_uart_device3;
+#ifdef CONFIG_MACH_MX27
+extern struct platform_device imx2x_uart_device4;
+extern struct platform_device imx2x_uart_device5;
+#endif
 extern struct platform_device mxc_w1_master_device;
 #ifdef CONFIG_MACH_MX21
 extern struct platform_device imx21_nand_device;
index f3b169d5245fcdf7f751c896ad693073bba31087..463e80df6d42a047d0c6082bab27edcdca278be9 100644 (file)
@@ -222,8 +222,8 @@ void __init eukrea_mbimx27_baseboard_init(void)
        mxc_gpio_setup_multiple_pins(eukrea_mbimx27_pins,
                ARRAY_SIZE(eukrea_mbimx27_pins), "MBIMX27");
 
-       mxc_register_device(&mxc_uart_device1, &uart_pdata[0]);
-       mxc_register_device(&mxc_uart_device2, &uart_pdata[1]);
+       mxc_register_device(&imx2x_uart_device1, &uart_pdata[0]);
+       mxc_register_device(&imx2x_uart_device2, &uart_pdata[1]);
 
        mxc_register_device(&mxc_fb_device, &eukrea_mbimx27_fb_data);
        mxc_register_device(&mxc_sdhc_device0, NULL);
index 1f616dcaabc9bbf1089438c29e81bc57d0140dea..866a99a337f2cbb24b933671fd56450d44ec624e 100644 (file)
@@ -187,7 +187,7 @@ static void __init eukrea_cpuimx27_init(void)
        mxc_gpio_setup_multiple_pins(eukrea_cpuimx27_pins,
                ARRAY_SIZE(eukrea_cpuimx27_pins), "CPUIMX27");
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]);
 
        mxc_register_device(&imx27_nand_device,
                        &eukrea_cpuimx27_nand_board_info);
@@ -203,7 +203,7 @@ static void __init eukrea_cpuimx27_init(void)
        /* SDHC2 can be used for Wifi */
        mxc_register_device(&mxc_sdhc_device1, NULL);
        /* in which case UART4 is also used for Bluetooth */
-       mxc_register_device(&mxc_uart_device3, &uart_pdata[1]);
+       mxc_register_device(&imx2x_uart_device3, &uart_pdata[1]);
 #endif
 
 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
index fd1dddb8cad56214de18571b09d927bcb20461d7..27da9a171a1c6d1031ce8a541eae465b9c1955b3 100644 (file)
@@ -70,7 +70,7 @@ static void __init mx27lite_init(void)
 {
        mxc_gpio_setup_multiple_pins(mx27lite_pins, ARRAY_SIZE(mx27lite_pins),
                "imx27lite");
-       mxc_register_device(&mxc_uart_device0, &uart_pdata);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata);
        platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
 }
 
index 99f2492991b4c609767b187d73612cee0d2e87fe..e51f6f81e4cdaa82b581f9fc5fbeb1bb31650669 100644 (file)
@@ -297,9 +297,9 @@ static void __init mx21ads_board_init(void)
        mxc_gpio_setup_multiple_pins(mx21ads_pins, ARRAY_SIZE(mx21ads_pins),
                        "mx21ads");
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata);
-       mxc_register_device(&mxc_uart_device2, &uart_norts_pdata);
-       mxc_register_device(&mxc_uart_device3, &uart_pdata);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata);
+       mxc_register_device(&imx2x_uart_device2, &uart_norts_pdata);
+       mxc_register_device(&imx2x_uart_device3, &uart_pdata);
        mxc_register_device(&mxc_fb_device, &mx21ads_fb_data);
        mxc_register_device(&mxc_sdhc_device0, &mx21ads_sdhc_pdata);
        mxc_register_device(&imx21_nand_device, &mx21ads_nand_board_info);
index a45df59ca72bccf11dca88cb7a96ccd55544acf6..c9af5f13c6a2713b204fe91b6797cc88d90a40d7 100644 (file)
@@ -75,7 +75,7 @@ static void __init mx27pdk_init(void)
 {
        mxc_gpio_setup_multiple_pins(mx27pdk_pins, ARRAY_SIZE(mx27pdk_pins),
                "mx27pdk");
-       mxc_register_device(&mxc_uart_device0, &uart_pdata);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata);
        platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
 }
 
index 2183e3d4875a23d52dc20f95400b193a85dd3b9c..771a63f68ed84be199e48fc3cb4da901f47d3cc0 100644 (file)
@@ -313,12 +313,12 @@ static void __init mx27ads_board_init(void)
        mxc_gpio_setup_multiple_pins(mx27ads_pins, ARRAY_SIZE(mx27ads_pins),
                        "mx27ads");
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
-       mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
-       mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
-       mxc_register_device(&mxc_uart_device3, &uart_pdata[3]);
-       mxc_register_device(&mxc_uart_device4, &uart_pdata[4]);
-       mxc_register_device(&mxc_uart_device5, &uart_pdata[5]);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]);
+       mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]);
+       mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]);
+       mxc_register_device(&imx2x_uart_device3, &uart_pdata[3]);
+       mxc_register_device(&imx2x_uart_device4, &uart_pdata[4]);
+       mxc_register_device(&imx2x_uart_device5, &uart_pdata[5]);
        mxc_register_device(&imx27_nand_device, &mx27ads_nand_board_info);
 
        /* only the i2c master 1 is used on this CPU card */
index bc3855992677d34a4cd6ed9064c089d85e568022..4f4200be87f205d128a361f4c1edd9e67c6b4fe5 100644 (file)
@@ -254,9 +254,9 @@ static void __init mxt_td60_board_init(void)
        mxc_gpio_setup_multiple_pins(mxt_td60_pins, ARRAY_SIZE(mxt_td60_pins),
                        "MXT_TD60");
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
-       mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
-       mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]);
+       mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]);
+       mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]);
        mxc_register_device(&imx27_nand_device, &mxt_td60_nand_board_info);
 
        i2c_register_board_info(0, mxt_td60_i2c_devices,
index a87422ed4ff5a1ea9bd4f07605092bc646842ca9..984c4caeebdc391626572beaf9e0787f6840c216 100644 (file)
@@ -320,7 +320,7 @@ static void __init pca100_init(void)
 
        mxc_register_device(&imx_ssi_device0, &pca100_ssi_pdata);
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata);
 
        mxc_gpio_mode(GPIO_PORTC | 29 | GPIO_GPIO | GPIO_IN);
        mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata);
index 36c89431679a93edd5e66118ce9eb9b5838b9045..b6a15bac0c3d63e3066e4db8c2fb968204c8a7c8 100644 (file)
@@ -305,9 +305,9 @@ static void __init pcm038_init(void)
 
        pcm038_init_sram();
 
-       mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
-       mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
-       mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
+       mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]);
+       mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]);
+       mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]);
 
        mxc_gpio_mode(PE16_AF_OWIRE);
        mxc_register_device(&imx27_nand_device, &pcm038_nand_board_info);