Skip to content

Commit

Permalink
sparc: leds_resource.end assigned to itself in clock_board_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and David S. Miller committed Jan 15, 2010
1 parent 8654164 commit 0931714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/kernel/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 0931714

Please sign in to comment.