ar71xx: fix rtl8366rb support on wzr-hp-g300nh (patch by igor from #11021)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 25 Feb 2012 18:55:48 +0000 (18:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 25 Feb 2012 18:55:48 +0000 (18:55 +0000)
SVN-Revision: 30724

target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c

index 66009a109f093f1ff68c0d08fa234905d9a82610..2822e1e1470ccd34a889f1dae1a2ad4e0f9136b9 100644 (file)
@@ -270,7 +270,11 @@ static void __init wzrhpg300nh_setup(void)
 
        platform_device_register(&wzrhpg300nh_74hc153_device);
        platform_device_register(&wzrhpg300nh_flash_device);
-       platform_device_register(&wzrhpg300nh_rtl8366s_device);
+
+       if (hasrtl8366rb)
+               platform_device_register(&wzrhpg300nh_rtl8366rb_device);
+       else
+               platform_device_register(&wzrhpg300nh_rtl8366s_device);
 
        ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpg300nh_leds_gpio),
                                    wzrhpg300nh_leds_gpio);