diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-22 22:12:03 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 02:15:28 -0400 |
commit | 690c8fd31f1e35985d0f35772fde514da59ec9d1 (patch) | |
tree | 8a5a0036b3780a9eb315ea2201a2562570de1ebe /drivers/char/rtc.c | |
parent | de8d28b16f5614aeb12bb69c8f9a38578b8d3ada (diff) |
[SPARC64]: Use in-kernel PROM tree for EBUS and ISA.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/char/rtc.c')
-rw-r--r-- | drivers/char/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index f6686fcce809..0897b0c8d528 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -928,7 +928,7 @@ static int __init rtc_init(void) | |||
928 | #ifdef __sparc__ | 928 | #ifdef __sparc__ |
929 | for_each_ebus(ebus) { | 929 | for_each_ebus(ebus) { |
930 | for_each_ebusdev(edev, ebus) { | 930 | for_each_ebusdev(edev, ebus) { |
931 | if(strcmp(edev->prom_name, "rtc") == 0) { | 931 | if(strcmp(edev->prom_node->name, "rtc") == 0) { |
932 | rtc_port = edev->resource[0].start; | 932 | rtc_port = edev->resource[0].start; |
933 | rtc_irq = edev->irqs[0]; | 933 | rtc_irq = edev->irqs[0]; |
934 | goto found; | 934 | goto found; |
@@ -938,7 +938,7 @@ static int __init rtc_init(void) | |||
938 | #ifdef __sparc_v9__ | 938 | #ifdef __sparc_v9__ |
939 | for_each_isa(isa_br) { | 939 | for_each_isa(isa_br) { |
940 | for_each_isadev(isa_dev, isa_br) { | 940 | for_each_isadev(isa_dev, isa_br) { |
941 | if (strcmp(isa_dev->prom_name, "rtc") == 0) { | 941 | if (strcmp(isa_dev->prom_node->name, "rtc") == 0) { |
942 | rtc_port = isa_dev->resource.start; | 942 | rtc_port = isa_dev->resource.start; |
943 | rtc_irq = isa_dev->irq; | 943 | rtc_irq = isa_dev->irq; |
944 | goto found; | 944 | goto found; |