ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
[openwrt/openwrt.git] / target / linux / ramips / files / arch / mips / ralink / rt305x / mach-v22rw-2x2.c
index 44ebd06d5252e6278701cf9b54f61ce19003dc46..6dee249440656c0745e88660bd539353d8908567 100644 (file)
@@ -29,7 +29,6 @@
 
 #define V22RW_2X2_BUTTONS_POLL_INTERVAL        20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition v22rw_2x2_partitions[] = {
        {
                .name   = "u-boot",
@@ -60,13 +59,10 @@ static struct mtd_partition v22rw_2x2_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data v22rw_2x2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(v22rw_2x2_partitions),
        .parts          = v22rw_2x2_partitions,
-#endif
 };
 
 static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = {