[ARM] tegra: harmony: Remove android platform devices
authorColin Cross <ccross@android.com>
Sun, 27 Jun 2010 05:36:41 +0000 (22:36 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:04 +0000 (16:27 -0700)
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/board-harmony.c

index 116b42fd169c588bc85d46ee101b27cebac09d69..d3ab5a8664ae9df1d7d286c7168128a9b46f9343 100644 (file)
@@ -35,8 +35,6 @@
 #include <mach/irqs.h>
 #include <mach/nand.h>
 
-#include <linux/usb/android_composite.h>
-
 #include "board.h"
 #include "board-harmony.h"
 #include "clock.h"
@@ -236,44 +234,6 @@ struct platform_device tegra_otg = {
        .num_resources = ARRAY_SIZE(tegra_otg_resources),
 };
 
-static char *usb_functions[] = { "usb_mass_storage" };
-static char *usb_functions_adb[] = { "usb_mass_storage", "adb" };
-
-static struct android_usb_product usb_products[] = {
-       {
-               .product_id     = 0xDEAD,
-               .num_functions  = ARRAY_SIZE(usb_functions),
-               .functions      = usb_functions,
-       },
-       {
-               .product_id     = 0xBEEF,
-               .num_functions  = ARRAY_SIZE(usb_functions_adb),
-               .functions      = usb_functions_adb,
-       },
-};
-
-/* standard android USB platform data */
-static struct android_usb_platform_data andusb_plat = {
-       .vendor_id                      = 0x18d1,
-       .product_id                     = 0x0002,
-       .manufacturer_name      = "Google",
-       .product_name           = "Harmony!",
-       .serial_number          = "0000",
-       .num_products = ARRAY_SIZE(usb_products),
-       .products = usb_products,
-       .num_functions = ARRAY_SIZE(usb_functions_adb),
-       .functions = usb_functions_adb,
-};
-
-
-static struct platform_device androidusb_device = {
-       .name   = "android_usb",
-       .id     = -1,
-       .dev    = {
-               .platform_data  = &andusb_plat,
-       },
-};
-
 /* PDA power */
 static struct pda_power_pdata pda_power_pdata = {
 };
@@ -290,7 +250,6 @@ static struct platform_device *harmony_devices[] __initdata = {
        &debug_uart,
        &tegra_nand_device,
        &tegra_otg,
-       &androidusb_device,
        &pda_power_device,
 };