diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-15 09:27:49 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-15 09:27:49 (GMT) |
commit | 093171465235a8482fbf08a9a2e365247e1f7dd5 (patch) | |
tree | 350eb22f894af5864176a0b887ca93ad2c47c178 /arch/sparc/kernel/central.c | |
parent | 8654164f54bd02787ae91db8526dcae8e7e34eeb (diff) | |
download | linux-093171465235a8482fbf08a9a2e365247e1f7dd5.tar.xz |
sparc: leds_resource.end assigned to itself in clock_board_probe()
It should be a 1 byte region.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/central.c')
-rw-r--r-- | arch/sparc/kernel/central.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/central.c b/arch/sparc/kernel/central.c index f3b5466..4589ca3 100644 --- a/arch/sparc/kernel/central.c +++ b/arch/sparc/kernel/central.c @@ -99,7 +99,7 @@ static int __devinit clock_board_probe(struct of_device *op, p->leds_resource.start = (unsigned long) (p->clock_regs + CLOCK_CTRL); - p->leds_resource.end = p->leds_resource.end; + p->leds_resource.end = p->leds_resource.start; p->leds_resource.name = "leds"; p->leds_pdev.name = "sunfire-clockboard-leds"; @@ -194,7 +194,7 @@ static int __devinit fhc_probe(struct of_device *op, if (!p->central) { p->leds_resource.start = (unsigned long) (p->pregs + FHC_PREGS_CTRL); - p->leds_resource.end = p->leds_resource.end; + p->leds_resource.end = p->leds_resource.start; p->leds_resource.name = "leds"; p->leds_pdev.name = "sunfire-fhc-leds"; |