summaryrefslogtreecommitdiff
path: root/arch/arm/mach-integrator/leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-integrator/leds.c')
-rw-r--r--arch/arm/mach-integrator/leds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-integrator/leds.c b/arch/arm/mach-integrator/leds.c
index cb6ac58..7a7f6d3 100644
--- a/arch/arm/mach-integrator/leds.c
+++ b/arch/arm/mach-integrator/leds.c
@@ -11,11 +11,10 @@
#include <linux/slab.h>
#include <linux/leds.h>
+#include <mach/cm.h>
#include <mach/hardware.h>
#include <mach/platform.h>
-#include "cm.h"
-
#if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS)
#define ALPHA_REG __io_address(INTEGRATOR_DBG_BASE)
@@ -79,7 +78,7 @@ static void cm_led_set(struct led_classdev *cdev,
static enum led_brightness cm_led_get(struct led_classdev *cdev)
{
- u32 reg = cm_get();
+ u32 reg = readl(CM_CTRL);
return (reg & CM_CTRL_LED) ? LED_FULL : LED_OFF;
}