Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
34b21434
Commit
34b21434
authored
Jul 06, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Use platform_get_resource/platform_get_irq in sa1111.c
parent
26bcc8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
arch/arm/common/sa1111.c
arch/arm/common/sa1111.c
+8
-9
No files found.
arch/arm/common/sa1111.c
View file @
34b21434
...
...
@@ -929,16 +929,15 @@ static int sa1111_resume(struct device *dev, u32 level)
static
int
sa1111_probe
(
struct
device
*
dev
)
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
resource
*
mem
=
NULL
,
*
irq
=
NULL
;
int
i
;
struct
resource
*
mem
;
int
i
rq
;
for
(
i
=
0
;
i
<
pdev
->
num_resources
;
i
++
)
{
if
(
pdev
->
resource
[
i
].
flags
&
IORESOURCE_MEM
)
mem
=
&
pdev
->
resource
[
i
];
if
(
pdev
->
resource
[
i
].
flags
&
IORESOURCE_IRQ
)
irq
=
&
pdev
->
resource
[
i
];
}
return
__sa1111_probe
(
dev
,
mem
,
irq
?
irq
->
start
:
NO_IRQ
);
mem
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
mem
)
return
-
EINVAL
;
irq
=
platform_get_irq
(
pdev
,
0
);
return
__sa1111_probe
(
dev
,
mem
,
irq
);
}
static
int
sa1111_remove
(
struct
device
*
dev
)
...
...
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