From: Felix Fietkau Date: Sat, 25 Feb 2012 18:55:48 +0000 (+0000) Subject: ar71xx: fix rtl8366rb support on wzr-hp-g300nh (patch by igor from #11021) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=894edfc8a6a27365cf9985b2464d9c2e77b19033;p=openwrt%2Fsvn-archive%2Fopenwrt.git ar71xx: fix rtl8366rb support on wzr-hp-g300nh (patch by igor from #11021) SVN-Revision: 30724 --- diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c index 66009a109f..2822e1e147 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c @@ -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);