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
0f73d1bb
Commit
0f73d1bb
authored
Sep 01, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pci_psycho: Use of_getintprop_default().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
446139a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
arch/sparc64/kernel/pci_psycho.c
arch/sparc64/kernel/pci_psycho.c
+3
-14
No files found.
arch/sparc64/kernel/pci_psycho.c
View file @
0f73d1bb
...
@@ -975,7 +975,6 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
...
@@ -975,7 +975,6 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
struct
of_device
*
op
,
int
is_pbm_a
)
struct
of_device
*
op
,
int
is_pbm_a
)
{
{
struct
device_node
*
dp
=
op
->
node
;
struct
device_node
*
dp
=
op
->
node
;
struct
property
*
prop
;
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
if
(
is_pbm_a
)
if
(
is_pbm_a
)
...
@@ -994,14 +993,8 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
...
@@ -994,14 +993,8 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_PSYCHO
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_PSYCHO
;
pbm
->
chip_version
=
0
;
pbm
->
chip_version
=
of_getintprop_default
(
dp
,
"version#"
,
0
);
prop
=
of_find_property
(
dp
,
"version#"
,
NULL
);
pbm
->
chip_revision
=
of_getintprop_default
(
dp
,
"module-revision#"
,
0
);
if
(
prop
)
pbm
->
chip_version
=
*
(
int
*
)
prop
->
value
;
pbm
->
chip_revision
=
0
;
prop
=
of_find_property
(
dp
,
"module-revision#"
,
NULL
);
if
(
prop
)
pbm
->
chip_revision
=
*
(
int
*
)
prop
->
value
;
pbm
->
parent
=
p
;
pbm
->
parent
=
p
;
pbm
->
prom_node
=
dp
;
pbm
->
prom_node
=
dp
;
...
@@ -1031,13 +1024,9 @@ static int __devinit psycho_probe(struct of_device *op,
...
@@ -1031,13 +1024,9 @@ static int __devinit psycho_probe(struct of_device *op,
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
struct
iommu
*
iommu
;
struct
iommu
*
iommu
;
int
is_pbm_a
,
err
;
int
is_pbm_a
,
err
;
const
u32
*
p32
;
u32
upa_portid
;
u32
upa_portid
;
upa_portid
=
0xff
;
upa_portid
=
of_getintprop_default
(
dp
,
"upa-portid"
,
0xff
);
p32
=
of_get_property
(
dp
,
"upa-portid"
,
NULL
);
if
(
p32
)
upa_portid
=
*
p32
;
for
(
pbm
=
pci_pbm_root
;
pbm
;
pbm
=
pbm
->
next
)
{
for
(
pbm
=
pci_pbm_root
;
pbm
;
pbm
=
pbm
->
next
)
{
struct
pci_controller_info
*
p
=
pbm
->
parent
;
struct
pci_controller_info
*
p
=
pbm
->
parent
;
...
...
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