ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
[openwrt/staging/wigyori.git] / target / linux / ramips / files / arch / mips / ralink / rt305x / mach-w502u.c
index c90884cac19c02d8835b8673317398f149e31190..b2140265958dec67bfc5fb8f049c7ad8ca1bfc07 100644 (file)
@@ -30,7 +30,6 @@
 
 #define W502U_BUTTONS_POLL_INTERVAL    20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition w502u_partitions[] = {
        {
                .name   = "u-boot",
@@ -66,13 +65,10 @@ static struct mtd_partition w502u_partitions[] = {
                .size   = 0x7a0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data w502u_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(w502u_partitions),
        .parts          = w502u_partitions,
-#endif
 };
 
 static struct gpio_led w502u_leds_gpio[] __initdata = {