ARM: tegra: remove tegra_hsuart reference
Laxman Dewangan [Tue, 20 Aug 2013 14:08:43 +0000 (19:08 +0530)]
Legacy tegra hsuart driver is no more supported and hence remove its
reference.

bug 1349711

Change-Id: I0fcc3d73083a3479ae806f8e5b953caa986ca11a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/263928

arch/arm/mach-tegra/board-ardbeg.c
arch/arm/mach-tegra/board-bonaire.c
arch/arm/mach-tegra/board-curacao.c
arch/arm/mach-tegra/board-dalmore.c
arch/arm/mach-tegra/board-loki.c
arch/arm/mach-tegra/board-macallan.c
arch/arm/mach-tegra/board-pismo.c
arch/arm/mach-tegra/board-pluto.c
arch/arm/mach-tegra/board-roth.c

index 1ab226e..f935733 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/platform_data/tegra_usb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/spi/spi-tegra.h>
 #include <linux/nfc/pn544.h>
@@ -49,7 +48,6 @@
 #include <linux/of_platform.h>
 #include <linux/i2c.h>
 #include <linux/i2c-tegra.h>
-#include <linux/tegra_uart.h>
 #include <linux/serial_tegra.h>
 #include <linux/edp.h>
 #include <linux/usb/tegra_usb_phy.h>
index 2ae8986..74c8849 100644 (file)
@@ -36,7 +36,6 @@
 #include <linux/gpio_keys.h>
 #include <linux/input.h>
 #include <linux/platform_data/tegra_usb.h>
-#include <linux/tegra_uart.h>
 #include <linux/serial_tegra.h>
 #include <linux/of_platform.h>
 #include <mach/clk.h>
@@ -539,10 +538,6 @@ static struct platform_device *bonaire_hs_uart_devices[] __initdata = {
        &tegra_uartd_device, &tegra_uartb_device, &tegra_uartc_device,
 };
 
-static struct uart_clk_parent uart_parent_clk[] = {
-       [0] = {.name = "clk_m"},
-};
-
 static struct tegra_serial_platform_data bonaire_uartb_pdata = {
        .dma_req_selector = 9,
        .modem_interrupt = false,
@@ -556,11 +551,8 @@ static struct tegra_serial_platform_data bonaire_uartd_pdata = {
        .modem_interrupt = false,
 };
 
-static struct tegra_uart_platform_data bonaire_loopback_uart_pdata;
-
 static void __init bonaire_hs_uart_init(void)
 {
-       bonaire_loopback_uart_pdata.is_loopback = true;
        tegra_uartb_device.dev.platform_data = &bonaire_uartb_pdata;
        tegra_uartc_device.dev.platform_data = &bonaire_uartc_pdata;
        tegra_uartd_device.dev.platform_data = &bonaire_uartd_pdata;
index f2f5633..571bd1c 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/platform_device.h>
 #include <linux/clk.h>
 #include <linux/serial_8250.h>
-#include <linux/tegra_uart.h>
 #include <linux/i2c.h>
 #include <linux/i2c/panjit_ts.h>
 #include <linux/dma-mapping.h>
@@ -501,38 +500,8 @@ static struct platform_device *curacao_hs_uart_devices[] __initdata = {
        &tegra_uarte_device,
 };
 
-static struct uart_clk_parent uart_parent_clk[] = {
-       [0] = {.name = "clk_m"},
-};
-
-static struct tegra_uart_platform_data curacao_uart_pdata;
-static struct tegra_uart_platform_data curacao_loopback_uart_pdata;
-
 static void __init curacao_hs_uart_init(void)
 {
-       struct clk *c;
-       int i;
-
-       for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
-               c = tegra_get_clock_by_name(uart_parent_clk[i].name);
-               if (IS_ERR_OR_NULL(c)) {
-                       pr_err("Not able to get the clock for %s\n",
-                                       uart_parent_clk[i].name);
-                       continue;
-               }
-               uart_parent_clk[i].parent_clk = c;
-               uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
-       }
-       curacao_uart_pdata.parent_clk_list = uart_parent_clk;
-       curacao_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
-       curacao_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
-       curacao_loopback_uart_pdata.parent_clk_count =
-                                               ARRAY_SIZE(uart_parent_clk);
-       curacao_loopback_uart_pdata.is_loopback = true;
-       tegra_uartb_device.dev.platform_data = &curacao_uart_pdata;
-       tegra_uartc_device.dev.platform_data = &curacao_uart_pdata;
-       tegra_uartd_device.dev.platform_data = &curacao_uart_pdata;
-       tegra_uarte_device.dev.platform_data = &curacao_loopback_uart_pdata;
        platform_add_devices(curacao_hs_uart_devices,
                                ARRAY_SIZE(curacao_hs_uart_devices));
 }
index 5355464..2b048a6 100644 (file)
@@ -33,7 +33,6 @@
 #include <linux/platform_data/tegra_usb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/serial_tegra.h>
 #include <linux/memblock.h>
 #include <linux/spi/spi-tegra.h>
index c84c476..cc1a1a6 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/platform_data/tegra_usb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/spi/spi-tegra.h>
 #include <linux/nfc/pn544.h>
@@ -49,7 +48,6 @@
 #include <linux/of_platform.h>
 #include <linux/i2c.h>
 #include <linux/i2c-tegra.h>
-#include <linux/tegra_uart.h>
 #include <linux/serial_tegra.h>
 #include <linux/edp.h>
 #include <linux/mfd/palmas.h>
index 4d3ea2a..b4c2c13 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/usb/tegra_usb_phy.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/spi-tegra.h>
 #include <linux/nfc/pn544.h>
@@ -235,16 +234,6 @@ static struct platform_device *macallan_uart_devices[] __initdata = {
        &tegra_uartc_device,
        &tegra_uartd_device,
 };
-static struct uart_clk_parent uart_parent_clk[] = {
-       [0] = {.name = "clk_m"},
-       [1] = {.name = "pll_p"},
-#ifndef CONFIG_TEGRA_PLLM_RESTRICTED
-       [2] = {.name = "pll_m"},
-#endif
-};
-
-static struct tegra_uart_platform_data macallan_uart_pdata;
-static struct tegra_uart_platform_data macallan_loopback_uart_pdata;
 
 static void __init uart_debug_init(void)
 {
@@ -259,30 +248,6 @@ static void __init uart_debug_init(void)
 
 static void __init macallan_uart_init(void)
 {
-       struct clk *c;
-       int i;
-
-       for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
-               c = tegra_get_clock_by_name(uart_parent_clk[i].name);
-               if (IS_ERR_OR_NULL(c)) {
-                       pr_err("Not able to get the clock for %s\n",
-                                               uart_parent_clk[i].name);
-                       continue;
-               }
-               uart_parent_clk[i].parent_clk = c;
-               uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
-       }
-       macallan_uart_pdata.parent_clk_list = uart_parent_clk;
-       macallan_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
-       macallan_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
-       macallan_loopback_uart_pdata.parent_clk_count =
-                                               ARRAY_SIZE(uart_parent_clk);
-       macallan_loopback_uart_pdata.is_loopback = true;
-       tegra_uarta_device.dev.platform_data = &macallan_uart_pdata;
-       tegra_uartb_device.dev.platform_data = &macallan_uart_pdata;
-       tegra_uartc_device.dev.platform_data = &macallan_uart_pdata;
-       tegra_uartd_device.dev.platform_data = &macallan_uart_pdata;
-
        /* Register low speed only if it is selected */
        if (!is_tegra_debug_uartport_hs())
                uart_debug_init();
index 066d666..f2ff716 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/platform_data/tegra_usb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/spi-tegra.h>
 #include <linux/nfc/pn544.h>
@@ -309,16 +308,6 @@ static struct platform_device *pismo_uart_devices[] __initdata = {
        &tegra_uartc_device,
        &tegra_uartd_device,
 };
-static struct uart_clk_parent uart_parent_clk[] = {
-       [0] = {.name = "clk_m"},
-       [1] = {.name = "pll_p"},
-#ifndef CONFIG_TEGRA_PLLM_RESTRICTED
-       [2] = {.name = "pll_m"},
-#endif
-};
-
-static struct tegra_uart_platform_data pismo_uart_pdata;
-static struct tegra_uart_platform_data pismo_loopback_uart_pdata;
 
 static void __init uart_debug_init(void)
 {
@@ -333,30 +322,6 @@ static void __init uart_debug_init(void)
 
 static void __init pismo_uart_init(void)
 {
-       struct clk *c;
-       int i;
-
-       for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
-               c = tegra_get_clock_by_name(uart_parent_clk[i].name);
-               if (IS_ERR_OR_NULL(c)) {
-                       pr_err("Not able to get the clock for %s\n",
-                                               uart_parent_clk[i].name);
-                       continue;
-               }
-               uart_parent_clk[i].parent_clk = c;
-               uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
-       }
-       pismo_uart_pdata.parent_clk_list = uart_parent_clk;
-       pismo_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
-       pismo_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
-       pismo_loopback_uart_pdata.parent_clk_count =
-                                               ARRAY_SIZE(uart_parent_clk);
-       pismo_loopback_uart_pdata.is_loopback = true;
-       tegra_uarta_device.dev.platform_data = &pismo_uart_pdata;
-       tegra_uartb_device.dev.platform_data = &pismo_uart_pdata;
-       tegra_uartc_device.dev.platform_data = &pismo_uart_pdata;
-       tegra_uartd_device.dev.platform_data = &pismo_uart_pdata;
-
        /* Register low speed only if it is selected */
        if (!is_tegra_debug_uartport_hs())
                uart_debug_init();
index 00a35ad..2f80815 100644 (file)
@@ -33,7 +33,6 @@
 #include <linux/platform_data/tegra_usb.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/spi/spi-tegra.h>
 #include <linux/nfc/pn544.h>
index 440b2c7..35bdd9a 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/rm31080a_ts.h>
 #include <linux/spi-tegra.h>
-#include <linux/tegra_uart.h>
 #include <linux/memblock.h>
 #include <linux/rfkill-gpio.h>
 #include <linux/skbuff.h>
@@ -275,16 +274,6 @@ static struct platform_device *roth_uart_devices[] __initdata = {
        &tegra_uartc_device,
        &tegra_uartd_device,
 };
-static struct uart_clk_parent uart_parent_clk[] = {
-       [0] = {.name = "clk_m"},
-       [1] = {.name = "pll_p"},
-#ifndef CONFIG_TEGRA_PLLM_RESTRICTED
-       [2] = {.name = "pll_m"},
-#endif
-};
-
-static struct tegra_uart_platform_data roth_uart_pdata;
-static struct tegra_uart_platform_data roth_loopback_uart_pdata;
 
 static void __init uart_debug_init(void)
 {
@@ -299,30 +288,6 @@ static void __init uart_debug_init(void)
 
 static void __init roth_uart_init(void)
 {
-       struct clk *c;
-       int i;
-
-       for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
-               c = tegra_get_clock_by_name(uart_parent_clk[i].name);
-               if (IS_ERR_OR_NULL(c)) {
-                       pr_err("Not able to get the clock for %s\n",
-                                               uart_parent_clk[i].name);
-                       continue;
-               }
-               uart_parent_clk[i].parent_clk = c;
-               uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
-       }
-       roth_uart_pdata.parent_clk_list = uart_parent_clk;
-       roth_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
-       roth_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
-       roth_loopback_uart_pdata.parent_clk_count =
-                                               ARRAY_SIZE(uart_parent_clk);
-       roth_loopback_uart_pdata.is_loopback = true;
-       tegra_uarta_device.dev.platform_data = &roth_uart_pdata;
-       tegra_uartb_device.dev.platform_data = &roth_uart_pdata;
-       tegra_uartc_device.dev.platform_data = &roth_uart_pdata;
-       tegra_uartd_device.dev.platform_data = &roth_uart_pdata;
-
        /* Register low speed only if it is selected */
        if (!is_tegra_debug_uartport_hs())
                uart_debug_init();