]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
tegra: remove unused uart platform device structures
authorShardar Shariff Md <smohammed@nvidia.com>
Fri, 15 Aug 2014 14:20:35 +0000 (19:50 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Sat, 16 Aug 2014 08:18:13 +0000 (01:18 -0700)
Cleanup unused UART platform device structures.

Bug 200028034

Change-Id: If11150e542f5fbaa94ba9ff791c48e089ac64212
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/457113
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h

index 25d850ff9860c8f253f9fadc59ab4af304bc743d..5be4023925883a3a3928496d332cb252375302bc 100644 (file)
@@ -351,145 +351,6 @@ struct platform_device tegra_pmu_device = {
        .resource       = tegra_pmu_resources,
 };
 
-static struct plat_serial8250_port debug_uarta_platform_data[] = {
-       {
-               .membase        = IO_ADDRESS(TEGRA_UARTA_BASE),
-               .mapbase        = TEGRA_UARTA_BASE,
-               .irq            = INT_UARTA,
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_12x_SOC) \
-               || defined(CONFIG_ARCH_TEGRA_13x_SOC)
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE | UPF_BUGGY_UART,
-#else
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
-#endif
-               .type           = PORT_TEGRA,
-               .iotype         = UPIO_MEM,
-               .regshift       = 2,
-       },
-       {
-               .flags          = 0,
-       },
-};
-
-static struct plat_serial8250_port debug_uartb_platform_data[] = {
-       {
-               .membase        = IO_ADDRESS(TEGRA_UARTB_BASE),
-               .mapbase        = TEGRA_UARTB_BASE,
-               .irq            = INT_UARTB,
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_12x_SOC) \
-               || defined(CONFIG_ARCH_TEGRA_13x_SOC)
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE | UPF_BUGGY_UART,
-#else
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
-#endif
-               .type           = PORT_TEGRA,
-               .iotype         = UPIO_MEM,
-               .regshift       = 2,
-       },
-       {
-               .flags          = 0,
-       },
-};
-
-static struct plat_serial8250_port debug_uartc_platform_data[] = {
-       {
-               .membase        = IO_ADDRESS(TEGRA_UARTC_BASE),
-               .mapbase        = TEGRA_UARTC_BASE,
-               .irq            = INT_UARTC,
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_12x_SOC) \
-               || defined(CONFIG_ARCH_TEGRA_13x_SOC)
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE | UPF_BUGGY_UART,
-#else
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
-#endif
-               .type           = PORT_TEGRA,
-               .iotype         = UPIO_MEM,
-               .regshift       = 2,
-       },
-       {
-               .flags          = 0,
-       },
-};
-
-static struct plat_serial8250_port debug_uartd_platform_data[] = {
-       {
-               .membase        = IO_ADDRESS(TEGRA_UARTD_BASE),
-               .mapbase        = TEGRA_UARTD_BASE,
-               .irq            = INT_UARTD,
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_12x_SOC) \
-               || defined(CONFIG_ARCH_TEGRA_13x_SOC)
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE | UPF_BUGGY_UART,
-#else
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE,
-#endif
-               .type           = PORT_TEGRA,
-               .iotype         = UPIO_MEM,
-               .regshift       = 2,
-       },
-       {
-               .flags          = 0,
-       },
-};
-
-#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_21x_SOC)
-static struct plat_serial8250_port debug_uarte_platform_data[] = {
-       {
-               .membase        = IO_ADDRESS(TEGRA_UARTE_BASE),
-               .mapbase        = TEGRA_UARTE_BASE,
-               .irq            = INT_UARTE,
-               .flags          = UPF_BOOT_AUTOCONF | UPF_FIXED_TYPE | UPF_BUGGY_UART,
-               .type           = PORT_TEGRA,
-               .iotype         = UPIO_MEM,
-               .regshift       = 2,
-       },
-       {
-               .flags          = 0,
-       },
-};
-#endif
-
-struct platform_device debug_uarta_device = {
-       .name = "serial8250",
-       .id = PLAT8250_DEV_PLATFORM,
-       .dev = {
-               .platform_data = debug_uarta_platform_data,
-       },
-};
-
-struct platform_device debug_uartb_device = {
-       .name = "serial8250",
-       .id = PLAT8250_DEV_PLATFORM,
-       .dev = {
-               .platform_data = debug_uartb_platform_data,
-       },
-};
-
-struct platform_device debug_uartc_device = {
-       .name = "serial8250",
-       .id = PLAT8250_DEV_PLATFORM,
-       .dev = {
-               .platform_data = debug_uartc_platform_data,
-       },
-};
-
-struct platform_device debug_uartd_device = {
-       .name = "serial8250",
-       .id = PLAT8250_DEV_PLATFORM,
-       .dev = {
-               .platform_data = debug_uartd_platform_data,
-       },
-};
-
-#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_21x_SOC)
-struct platform_device debug_uarte_device = {
-       .name = "serial8250",
-       .id = PLAT8250_DEV_PLATFORM,
-       .dev = {
-               .platform_data = debug_uarte_platform_data,
-       },
-};
-#endif
-
 #ifdef CONFIG_ARCH_TEGRA_2x_SOC
 static struct resource i2s_resource1[] = {
        [0] = {
index 31dc7a9990506fb1b8412405e2462c2e07e8afdc..4d82a3561eef7154ba7b07096eb1671e72a2d4db 100644 (file)
@@ -123,15 +123,10 @@ extern struct platform_device tegra_skin_therm_est_device;
 extern struct platform_device tegra_tsensor_device;
 #endif
 extern struct platform_device tegra_nor_device;
-extern struct platform_device debug_uarta_device;
-extern struct platform_device debug_uartb_device;
-extern struct platform_device debug_uartc_device;
-extern struct platform_device debug_uartd_device;
 #if !defined(CONFIG_ARCH_TEGRA_2x_SOC)
 extern struct platform_device tegra_se_device;
 extern struct platform_device tegra11_se_device;
 extern struct platform_device tegra12_se_device;
-extern struct platform_device debug_uarte_device;
 #endif
 
 extern struct platform_device tegra_disp1_device;
@@ -143,6 +138,4 @@ extern struct platform_device tegra_cl_dvfs_device;
 #endif
 extern struct platform_device tegra_fuse_device;
 
-void __init tegra_init_debug_uart_rate(void);
-
 #endif