#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/err.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <gpio.h>
#define DRVNAME "ar7-leds"
MODULE_DESCRIPTION(LONGNAME);
MODULE_LICENSE("GPL");
-static void ar7_status_led_set(struct led_classdev *pled,
+static void ar7_status_led_set(struct led_classdev *pled,
enum led_brightness value)
{
gpio_set_value(AR7_GPIO_BIT_STATUS_LED, value ? 0 : 1);
int rc;
rc = led_classdev_register(&pdev->dev, &ar7_status_led);
- if (rc < 0 )
+ if (rc < 0)
goto out;
ar7_gpio_enable(AR7_GPIO_BIT_STATUS_LED);