ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
[openwrt.git] / target / linux / ramips / files / arch / mips / ralink / rt288x / mach-wzr-agl300nh.c
index d37af91..3e59fbe 100644 (file)
@@ -30,7 +30,6 @@
  * mtd5: 00010000 00010000 "user_property"
  */
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition wzr_agl300nh_partitions[] = {
        {
                .name   = "uboot",
@@ -61,13 +60,10 @@ static struct mtd_partition wzr_agl300nh_partitions[] = {
                .size   = 0x010000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data wzr_agl300nh_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(wzr_agl300nh_partitions),
        .parts          = wzr_agl300nh_partitions,
-#endif
 };
 
 static void __init wzr_agl300nh_init(void)
@@ -75,6 +71,8 @@ static void __init wzr_agl300nh_init(void)
        rt288x_gpio_init(RT2880_GPIO_MODE_UART0);
 
        rt288x_register_flash(0, &wzr_agl300nh_flash_data);
+       rt288x_register_wifi();
+       rt288x_register_wdt();
 }
 
 MIPS_MACHINE(RAMIPS_MACH_WZR_AGL300NH, "WZR-AGL300NH",
This page took 0.02879 seconds and 4 git commands to generate.