Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
75081322
Commit
75081322
authored
Aug 30, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc32: Convert PC RTC probing to pure OF driver.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
afc88ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
drivers/char/rtc.c
drivers/char/rtc.c
+17
-13
No files found.
drivers/char/rtc.c
View file @
75081322
...
@@ -88,12 +88,12 @@
...
@@ -88,12 +88,12 @@
#endif
#endif
#ifdef CONFIG_SPARC32
#ifdef CONFIG_SPARC32
#include <linux/
pci
.h>
#include <linux/
of
.h>
#include <linux/
jiffies
.h>
#include <linux/
of_device
.h>
#include <asm/
ebus
.h>
#include <asm/
io
.h>
static
unsigned
long
rtc_port
;
static
unsigned
long
rtc_port
;
static
int
rtc_irq
=
PCI_IRQ_NONE
;
static
int
rtc_irq
;
#endif
#endif
#ifdef CONFIG_HPET_RTC_IRQ
#ifdef CONFIG_HPET_RTC_IRQ
...
@@ -973,8 +973,8 @@ static int __init rtc_init(void)
...
@@ -973,8 +973,8 @@ static int __init rtc_init(void)
char
*
guess
=
NULL
;
char
*
guess
=
NULL
;
#endif
#endif
#ifdef CONFIG_SPARC32
#ifdef CONFIG_SPARC32
struct
linux_ebus
*
ebus
;
struct
device_node
*
ebus_dp
;
struct
linux_ebus_device
*
edev
;
struct
of_device
*
op
;
#else
#else
void
*
r
;
void
*
r
;
#ifdef RTC_IRQ
#ifdef RTC_IRQ
...
@@ -983,12 +983,16 @@ static int __init rtc_init(void)
...
@@ -983,12 +983,16 @@ static int __init rtc_init(void)
#endif
#endif
#ifdef CONFIG_SPARC32
#ifdef CONFIG_SPARC32
for_each_ebus
(
ebus
)
{
for_each_node_by_name
(
ebus_dp
,
"ebus"
)
{
for_each_ebusdev
(
edev
,
ebus
)
{
struct
device_node
*
dp
;
if
(
strcmp
(
edev
->
prom_node
->
name
,
"rtc"
)
==
0
)
{
for
(
dp
=
ebus_dp
;
dp
;
dp
=
dp
->
sibling
)
{
rtc_port
=
edev
->
resource
[
0
].
start
;
if
(
!
strcmp
(
dp
->
name
,
"rtc"
))
{
rtc_irq
=
edev
->
irqs
[
0
];
op
=
of_find_device_by_node
(
dp
);
goto
found
;
if
(
op
)
{
rtc_port
=
op
->
resource
[
0
].
start
;
rtc_irq
=
op
->
irqs
[
0
];
goto
found
;
}
}
}
}
}
}
}
...
@@ -997,7 +1001,7 @@ static int __init rtc_init(void)
...
@@ -997,7 +1001,7 @@ static int __init rtc_init(void)
return
-
EIO
;
return
-
EIO
;
found:
found:
if
(
rtc_irq
==
PCI_IRQ_NONE
)
{
if
(
!
rtc_irq
)
{
rtc_has_irq
=
0
;
rtc_has_irq
=
0
;
goto
no_irq
;
goto
no_irq
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment