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

index af66a67c848632de56c0d7ccff90bdd48d7ec072..2d9e55bc69e4236f1f253b3dd0576948b4bccecd 100644 (file)
@@ -164,28 +164,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 platform_device *harmony_devices[] __initdata = {
        &debug_uart,
        &tegra_nand_device,
@@ -199,7 +177,7 @@ static struct platform_device *harmony_devices[] __initdata = {
        &tegra_spi_device2,
        &tegra_spi_device3,
        &tegra_spi_device4,
-       &tegra_gart_dev,
+       &tegra_gart_device,
 };
 
 static void __init tegra_harmony_fixup(struct machine_desc *desc,