[ARM] tegra: ventana: use tegra_gart_device rather than local definition
authorGary King <gking@nvidia.com>
Tue, 3 Aug 2010 21:54:46 +0000 (14:54 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:27 +0000 (16:27 -0700)
Change-Id: I6cb57dd46162c258e32c4946de5a649daff3a79b
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/board-ventana.c

index f3c47d3dc9c1b946e5b44280ff4003d0267d34eb..ea37c0698bc7a025656b2c7f545aee694c9f811b 100644 (file)
@@ -89,28 +89,6 @@ static struct platform_device pda_power_device = {
        },
 };
 
-static struct resource tegra_gart_resources[] = {
-    {
-       .name = "mc",
-       .flags = IORESOURCE_MEM,
-       .start = TEGRA_MC_BASE,
-       .end = TEGRA_MC_BASE + TEGRA_MC_SIZE - 1,
-    },
-    {
-       .name = "gart",
-       .flags = IORESOURCE_MEM,
-       .start = 0x58000000,
-       .end = 0x58000000 - 1 + 32 * 1024 * 1024,
-    }
-};
-
-static struct platform_device tegra_gart_dev = {
-    .name = "tegra_gart",
-    .id = -1,
-    .num_resources = ARRAY_SIZE(tegra_gart_resources),
-    .resource = tegra_gart_resources
-};
-
 static struct tegra_i2c_platform_data ventana_i2c1_platform_data = {
        .adapter_nr     = 0,
        .bus_count      = 1,
@@ -165,7 +143,7 @@ static struct platform_device *ventana_devices[] __initdata = {
        &debug_uart,
        &tegra_udc_device,
        &pda_power_device,
-       &tegra_gart_dev,
+       &tegra_gart_device,
 };
 
 static int ventana_touch_reset(void)