ar71xx: preset WLAN LED config on MZK-W300NH
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 301-leds-wndr3700-3.2-fixes.patch
1 --- a/drivers/leds/leds-wndr3700-usb.c
2 +++ b/drivers/leds/leds-wndr3700-usb.c
3 @@ -12,7 +12,8 @@
4 #include <linux/module.h>
5 #include <linux/platform_device.h>
6
7 -#include <asm/mach-ar71xx/ar71xx.h>
8 +#include <asm/mach-ath79/ar71xx_regs.h>
9 +#include <asm/mach-ath79/ath79.h>
10
11 #define DRIVER_NAME "wndr3700-led-usb"
12
13 @@ -20,14 +21,14 @@ static void wndr3700_usb_led_set(struct
14 enum led_brightness brightness)
15 {
16 if (brightness)
17 - ar71xx_device_start(RESET_MODULE_GE1_PHY);
18 + ath79_device_reset_clear(AR71XX_RESET_GE1_PHY);
19 else
20 - ar71xx_device_stop(RESET_MODULE_GE1_PHY);
21 + ath79_device_reset_set(AR71XX_RESET_GE1_PHY);
22 }
23
24 static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev)
25 {
26 - return ar71xx_device_stopped(RESET_MODULE_GE1_PHY) ? LED_OFF : LED_FULL;
27 + return ath79_device_reset_get(AR71XX_RESET_GE1_PHY) ? LED_OFF : LED_FULL;
28 }
29
30 static struct led_classdev wndr3700_usb_led = {
This page took 0.048496 seconds and 5 git commands to generate.