mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 20:04:16 +08:00
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>
This commit is contained in:
parent
8654164f54
commit
0931714652
@ -99,7 +99,7 @@ static int __devinit clock_board_probe(struct of_device *op,
|
|||||||
|
|
||||||
p->leds_resource.start = (unsigned long)
|
p->leds_resource.start = (unsigned long)
|
||||||
(p->clock_regs + CLOCK_CTRL);
|
(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_resource.name = "leds";
|
||||||
|
|
||||||
p->leds_pdev.name = "sunfire-clockboard-leds";
|
p->leds_pdev.name = "sunfire-clockboard-leds";
|
||||||
@ -194,7 +194,7 @@ static int __devinit fhc_probe(struct of_device *op,
|
|||||||
if (!p->central) {
|
if (!p->central) {
|
||||||
p->leds_resource.start = (unsigned long)
|
p->leds_resource.start = (unsigned long)
|
||||||
(p->pregs + FHC_PREGS_CTRL);
|
(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_resource.name = "leds";
|
||||||
|
|
||||||
p->leds_pdev.name = "sunfire-fhc-leds";
|
p->leds_pdev.name = "sunfire-fhc-leds";
|
||||||
|
Loading…
Reference in New Issue
Block a user