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
f879c1e6
Commit
f879c1e6
authored
Nov 11, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] driver core: fix up some missed power_state changes from David's patch
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
475e7697
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
drivers/video/aty/aty128fb.c
drivers/video/aty/aty128fb.c
+5
-5
drivers/video/aty/atyfb_base.c
drivers/video/aty/atyfb_base.c
+5
-5
drivers/video/aty/radeon_pm.c
drivers/video/aty/radeon_pm.c
+3
-3
No files found.
drivers/video/aty/aty128fb.c
View file @
f879c1e6
...
...
@@ -2363,7 +2363,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state)
state
=
2
;
#endif
/* CONFIG_PPC_PMAC */
if
(
state
!=
2
||
state
==
pdev
->
dev
.
power_state
)
if
(
state
!=
2
||
state
==
pdev
->
dev
.
power
.
power
_state
)
return
0
;
printk
(
KERN_DEBUG
"aty128fb: suspending...
\n
"
);
...
...
@@ -2394,7 +2394,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem
();
pdev
->
dev
.
power_state
=
state
;
pdev
->
dev
.
power
.
power
_state
=
state
;
return
0
;
}
...
...
@@ -2404,13 +2404,13 @@ static int aty128_pci_resume(struct pci_dev *pdev)
struct
fb_info
*
info
=
pci_get_drvdata
(
pdev
);
struct
aty128fb_par
*
par
=
info
->
par
;
if
(
pdev
->
dev
.
power_state
==
0
)
if
(
pdev
->
dev
.
power
.
power
_state
==
0
)
return
0
;
acquire_console_sem
();
/* Wakeup chip */
if
(
pdev
->
dev
.
power_state
==
2
)
if
(
pdev
->
dev
.
power
.
power
_state
==
2
)
aty128_set_suspend
(
par
,
0
);
par
->
asleep
=
0
;
...
...
@@ -2430,7 +2430,7 @@ static int aty128_pci_resume(struct pci_dev *pdev)
release_console_sem
();
pdev
->
dev
.
power_state
=
0
;
pdev
->
dev
.
power
.
power
_state
=
0
;
printk
(
KERN_DEBUG
"aty128fb: resumed !
\n
"
);
...
...
drivers/video/aty/atyfb_base.c
View file @
f879c1e6
...
...
@@ -2033,7 +2033,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)
state
=
2
;
#endif
/* CONFIG_PPC_PMAC */
if
(
state
!=
2
||
state
==
pdev
->
dev
.
power_state
)
if
(
state
!=
2
||
state
==
pdev
->
dev
.
power
.
power
_state
)
return
0
;
acquire_console_sem
();
...
...
@@ -2062,7 +2062,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem
();
pdev
->
dev
.
power_state
=
state
;
pdev
->
dev
.
power
.
power
_state
=
state
;
return
0
;
}
...
...
@@ -2072,12 +2072,12 @@ static int atyfb_pci_resume(struct pci_dev *pdev)
struct
fb_info
*
info
=
pci_get_drvdata
(
pdev
);
struct
atyfb_par
*
par
=
(
struct
atyfb_par
*
)
info
->
par
;
if
(
pdev
->
dev
.
power_state
==
0
)
if
(
pdev
->
dev
.
power
.
power
_state
==
0
)
return
0
;
acquire_console_sem
();
if
(
pdev
->
dev
.
power_state
==
2
)
if
(
pdev
->
dev
.
power
.
power
_state
==
2
)
aty_power_mgmt
(
0
,
par
);
par
->
asleep
=
0
;
...
...
@@ -2093,7 +2093,7 @@ static int atyfb_pci_resume(struct pci_dev *pdev)
release_console_sem
();
pdev
->
dev
.
power_state
=
0
;
pdev
->
dev
.
power
.
power
_state
=
0
;
return
0
;
}
...
...
drivers/video/aty/radeon_pm.c
View file @
f879c1e6
...
...
@@ -898,7 +898,7 @@ int radeonfb_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem
();
pdev
->
dev
.
power_state
=
state
;
pdev
->
dev
.
power
.
power
_state
=
state
;
return
0
;
}
...
...
@@ -908,7 +908,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev)
struct
fb_info
*
info
=
pci_get_drvdata
(
pdev
);
struct
radeonfb_info
*
rinfo
=
info
->
par
;
if
(
pdev
->
dev
.
power_state
==
0
)
if
(
pdev
->
dev
.
power
.
power
_state
==
0
)
return
0
;
acquire_console_sem
();
...
...
@@ -935,7 +935,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev)
release_console_sem
();
pdev
->
dev
.
power_state
=
0
;
pdev
->
dev
.
power
.
power
_state
=
0
;
printk
(
KERN_DEBUG
"radeonfb: resumed !
\n
"
);
...
...
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