arm: tegra: kai: cleanup the code
Kerwin Wan [Wed, 4 Jul 2012 08:34:02 +0000 (16:34 +0800)]
kai doesn't use spi4 at all so clear the relevant code.

Change-Id: I6d04a880d3f4a793bd32181453897c0f6dd372cf
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/113470
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-by: Hao Tang <htang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

arch/arm/mach-tegra/board-kai.c

index 11a779b..d15276a 100644 (file)
@@ -503,7 +503,6 @@ static struct platform_device tegra_camera = {
 };
 
 static struct platform_device *kai_spi_devices[] __initdata = {
-       &tegra_spi_device4,
        &tegra_spi_device1,
 };
 
@@ -517,13 +516,6 @@ static struct spi_clk_parent spi_parent_clk[] = {
 #endif
 };
 
-static struct tegra_spi_platform_data kai_spi4_pdata = {
-       .is_dma_based           = true,
-       .max_dma_buffer         = (16 * 1024),
-       .is_clkon_always        = false,
-       .max_rate               = 100000000,
-};
-
 static struct tegra_spi_platform_data kai_spi1_pdata = {
                .is_dma_based           = true,
                .max_dma_buffer         = (128),
@@ -546,9 +538,6 @@ static void __init kai_spi_init(void)
                spi_parent_clk[i].parent_clk = c;
                spi_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
        }
-       kai_spi4_pdata.parent_clk_list = spi_parent_clk;
-       kai_spi4_pdata.parent_clk_count = ARRAY_SIZE(spi_parent_clk);
-       tegra_spi_device4.dev.platform_data = &kai_spi4_pdata;
 
        kai_spi1_pdata.parent_clk_list = spi_parent_clk;
        kai_spi1_pdata.parent_clk_count = ARRAY_SIZE(spi_parent_clk);