diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-03-27 18:50:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 11:22:08 -0400 |
commit | fbacc8dfd8bab24d326b3055d38246ca7a2e1da5 (patch) | |
tree | ff9486f40060c9423d05463c85b763e7c5f3ee1b | |
parent | be2d960e0017a9a100edaccc18249d29b427b6ec (diff) |
MIPS: SEAD3: Use symbolic addresses from sead-addr.h in LED driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mti-sead3/leds-sead3.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/mti-sead3/leds-sead3.c b/arch/mips/mti-sead3/leds-sead3.c index d2159cd72098..c938ceeb8848 100644 --- a/arch/mips/mti-sead3/leds-sead3.c +++ b/arch/mips/mti-sead3/leds-sead3.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. | 6 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. |
7 | * Copyright (C) 2015 Imagination Technologies, Inc. | ||
7 | */ | 8 | */ |
8 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
9 | #include <linux/module.h> | 10 | #include <linux/module.h> |
@@ -13,16 +14,18 @@ | |||
13 | #include <linux/err.h> | 14 | #include <linux/err.h> |
14 | #include <linux/io.h> | 15 | #include <linux/io.h> |
15 | 16 | ||
17 | #include <asm/mips-boards/sead3-addr.h> | ||
18 | |||
16 | static void sead3_pled_set(struct led_classdev *led_cdev, | 19 | static void sead3_pled_set(struct led_classdev *led_cdev, |
17 | enum led_brightness value) | 20 | enum led_brightness value) |
18 | { | 21 | { |
19 | writel(value, (void __iomem *)0xBF000210); /* FIXME */ | 22 | writel(value, (void __iomem *)SEAD3_CPLD_P_LED); |
20 | } | 23 | } |
21 | 24 | ||
22 | static void sead3_fled_set(struct led_classdev *led_cdev, | 25 | static void sead3_fled_set(struct led_classdev *led_cdev, |
23 | enum led_brightness value) | 26 | enum led_brightness value) |
24 | { | 27 | { |
25 | writel(value, (void __iomem *)0xBF000218); /* FIXME */ | 28 | writel(value, (void __iomem *)SEAD3_CPLD_F_LED); |
26 | } | 29 | } |
27 | 30 | ||
28 | static struct led_classdev sead3_pled = { | 31 | static struct led_classdev sead3_pled = { |