diff options
-rw-r--r-- | drivers/acpi/thermal.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 19f3ea48475e..928dcf9e77c7 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -82,6 +82,7 @@ MODULE_PARM_DESC(tzp, "Thermal zone polling frequency, in 1/10 seconds.\n"); | |||
82 | 82 | ||
83 | static int acpi_thermal_add(struct acpi_device *device); | 83 | static int acpi_thermal_add(struct acpi_device *device); |
84 | static int acpi_thermal_remove(struct acpi_device *device, int type); | 84 | static int acpi_thermal_remove(struct acpi_device *device, int type); |
85 | static int acpi_thermal_resume(struct acpi_device *device, int state); | ||
85 | static int acpi_thermal_state_open_fs(struct inode *inode, struct file *file); | 86 | static int acpi_thermal_state_open_fs(struct inode *inode, struct file *file); |
86 | static int acpi_thermal_temp_open_fs(struct inode *inode, struct file *file); | 87 | static int acpi_thermal_temp_open_fs(struct inode *inode, struct file *file); |
87 | static int acpi_thermal_trip_open_fs(struct inode *inode, struct file *file); | 88 | static int acpi_thermal_trip_open_fs(struct inode *inode, struct file *file); |
@@ -103,6 +104,7 @@ static struct acpi_driver acpi_thermal_driver = { | |||
103 | .ops = { | 104 | .ops = { |
104 | .add = acpi_thermal_add, | 105 | .add = acpi_thermal_add, |
105 | .remove = acpi_thermal_remove, | 106 | .remove = acpi_thermal_remove, |
107 | .resume = acpi_thermal_resume, | ||
106 | }, | 108 | }, |
107 | }; | 109 | }; |
108 | 110 | ||
@@ -1416,6 +1418,20 @@ static int acpi_thermal_remove(struct acpi_device *device, int type) | |||
1416 | return_VALUE(0); | 1418 | return_VALUE(0); |
1417 | } | 1419 | } |
1418 | 1420 | ||
1421 | static int acpi_thermal_resume(struct acpi_device *device, int state) | ||
1422 | { | ||
1423 | struct acpi_thermal *tz = NULL; | ||
1424 | |||
1425 | if (!device || !acpi_driver_data(device)) | ||
1426 | return_VALUE(-EINVAL); | ||
1427 | |||
1428 | tz = (struct acpi_thermal *)acpi_driver_data(device); | ||
1429 | |||
1430 | acpi_thermal_check(tz); | ||
1431 | |||
1432 | return AE_OK; | ||
1433 | } | ||
1434 | |||
1419 | static int __init acpi_thermal_init(void) | 1435 | static int __init acpi_thermal_init(void) |
1420 | { | 1436 | { |
1421 | int result = 0; | 1437 | int result = 0; |