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
a02079cd
Commit
a02079cd
authored
Feb 28, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATYFB]: Use pci_device_to_OF_node() in sparc.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
fa449bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/video/aty/atyfb_base.c
drivers/video/aty/atyfb_base.c
+3
-3
No files found.
drivers/video/aty/atyfb_base.c
View file @
a02079cd
...
@@ -2899,7 +2899,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
...
@@ -2899,7 +2899,7 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
struct
fb_info
*
info
,
unsigned
long
addr
)
struct
fb_info
*
info
,
unsigned
long
addr
)
{
{
struct
atyfb_par
*
par
=
info
->
par
;
struct
atyfb_par
*
par
=
info
->
par
;
struct
pcidev_cookie
*
pc
p
;
struct
device_node
*
d
p
;
char
prop
[
128
];
char
prop
[
128
];
int
node
,
len
,
i
,
j
,
ret
;
int
node
,
len
,
i
,
j
,
ret
;
u32
mem
,
chip_id
;
u32
mem
,
chip_id
;
...
@@ -3037,8 +3037,8 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
...
@@ -3037,8 +3037,8 @@ static int __devinit atyfb_setup_sparc(struct pci_dev *pdev,
node
=
0
;
node
=
0
;
}
}
pcp
=
pdev
->
sysdata
;
dp
=
pci_device_to_OF_node
(
pdev
)
;
if
(
node
==
pcp
->
prom_node
->
node
)
{
if
(
node
==
dp
->
node
)
{
struct
fb_var_screeninfo
*
var
=
&
default_var
;
struct
fb_var_screeninfo
*
var
=
&
default_var
;
unsigned
int
N
,
P
,
Q
,
M
,
T
,
R
;
unsigned
int
N
,
P
,
Q
,
M
,
T
,
R
;
u32
v_total
,
h_total
;
u32
v_total
,
h_total
;
...
...
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