mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
sparc: leds_resource.end assigned to itself in clock_board_probe()
[ Upstream commit 0931714652 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4ce9b6fbec
commit
bbc9c131b1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user