From 894edfc8a6a27365cf9985b2464d9c2e77b19033 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 25 Feb 2012 18:55:48 +0000 Subject: [PATCH] ar71xx: fix rtl8366rb support on wzr-hp-g300nh (patch by igor from #11021) SVN-Revision: 30724 --- .../ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2