diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-10-10 14:11:18 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-16 14:09:31 +0200 |
commit | fb61f8622369aad275a4e3487b8aeec7a571fdde (patch) | |
tree | 0bd297dbd8b79f6918326782a40a86a55c5c3322 /arch/arm/mach-integrator/leds.c | |
parent | d0e639c9e06d44e713170031fe05fb60ebe680af (diff) | |
download | blackbird-op-linux-fb61f8622369aad275a4e3487b8aeec7a571fdde.tar.gz blackbird-op-linux-fb61f8622369aad275a4e3487b8aeec7a571fdde.zip |
ARM: integrator: get the CM control register by proxy
The CM_CTRL register was accessed directly from the LED driver,
which does not work now that we get the base for the register
from the device tree. Add an accessor function to do this and
make the LED driver compile again.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-integrator/leds.c')
-rw-r--r-- | arch/arm/mach-integrator/leds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-integrator/leds.c b/arch/arm/mach-integrator/leds.c index 7a7f6d3273bf..ed82535845f7 100644 --- a/arch/arm/mach-integrator/leds.c +++ b/arch/arm/mach-integrator/leds.c @@ -78,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 = readl(CM_CTRL); + u32 reg = cm_get(); return (reg & CM_CTRL_LED) ? LED_FULL : LED_OFF; } |