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
c730d30c
Commit
c730d30c
authored
Mar 17, 2014
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-fan'
* acpi-fan: ACPI / fan: do nothing in suspend and poweroff callback
parents
2eb06097
b9b8515f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
drivers/acpi/fan.c
drivers/acpi/fan.c
+9
-4
No files found.
drivers/acpi/fan.c
View file @
c730d30c
...
...
@@ -55,11 +55,16 @@ MODULE_DEVICE_TABLE(acpi, fan_device_ids);
#ifdef CONFIG_PM_SLEEP
static
int
acpi_fan_suspend
(
struct
device
*
dev
);
static
int
acpi_fan_resume
(
struct
device
*
dev
);
static
struct
dev_pm_ops
acpi_fan_pm
=
{
.
resume
=
acpi_fan_resume
,
.
freeze
=
acpi_fan_suspend
,
.
thaw
=
acpi_fan_resume
,
.
restore
=
acpi_fan_resume
,
};
#define FAN_PM_OPS_PTR (&acpi_fan_pm)
#else
#define acpi_fan_suspend NULL
#define acpi_fan_resume NULL
#define FAN_PM_OPS_PTR NULL
#endif
static
SIMPLE_DEV_PM_OPS
(
acpi_fan_pm
,
acpi_fan_suspend
,
acpi_fan_resume
);
static
struct
acpi_driver
acpi_fan_driver
=
{
.
name
=
"fan"
,
...
...
@@ -69,7 +74,7 @@ static struct acpi_driver acpi_fan_driver = {
.
add
=
acpi_fan_add
,
.
remove
=
acpi_fan_remove
,
},
.
drv
.
pm
=
&
acpi_fan_pm
,
.
drv
.
pm
=
FAN_PM_OPS_PTR
,
};
/* thermal cooling device callbacks */
...
...
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