ramips: add MIPS platform file
[openwrt.git] / target / linux / ramips / files / arch / mips / ralink / rt305x / mach-v22rw-2x2.c
index b5883bb..6dee249 100644 (file)
@@ -29,7 +29,6 @@
 
 #define V22RW_2X2_BUTTONS_POLL_INTERVAL        20
 
 
 #define V22RW_2X2_BUTTONS_POLL_INTERVAL        20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition v22rw_2x2_partitions[] = {
        {
                .name   = "u-boot",
 static struct mtd_partition v22rw_2x2_partitions[] = {
        {
                .name   = "u-boot",
@@ -60,13 +59,10 @@ static struct mtd_partition v22rw_2x2_partitions[] = {
                .size   = 0x3b0000,
        }
 };
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data v22rw_2x2_flash_data = {
 
 static struct physmap_flash_data v22rw_2x2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(v22rw_2x2_partitions),
        .parts          = v22rw_2x2_partitions,
        .nr_parts       = ARRAY_SIZE(v22rw_2x2_partitions),
        .parts          = v22rw_2x2_partitions,
-#endif
 };
 
 static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = {
 };
 
 static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = {
@@ -113,6 +109,7 @@ static void __init v22rw_2x2_init(void)
                                     v22rw_2x2_gpio_buttons);
        rt305x_register_wifi();
        rt305x_register_wdt();
                                     v22rw_2x2_gpio_buttons);
        rt305x_register_wifi();
        rt305x_register_wdt();
+       rt305x_register_usb();
 }
 
 MIPS_MACHINE(RAMIPS_MACH_V22RW_2X2, "V22RW-2X2", "Ralink AP-RT3052-V22RW-2X2",
 }
 
 MIPS_MACHINE(RAMIPS_MACH_V22RW_2X2, "V22RW-2X2", "Ralink AP-RT3052-V22RW-2X2",
This page took 0.024315 seconds and 4 git commands to generate.