aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/thermal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 0ec48d2f85c5..6b959976b7a4 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -41,6 +41,7 @@
41#include <linux/kmod.h> 41#include <linux/kmod.h>
42#include <linux/seq_file.h> 42#include <linux/seq_file.h>
43#include <linux/reboot.h> 43#include <linux/reboot.h>
44#include <linux/device.h>
44#include <asm/uaccess.h> 45#include <asm/uaccess.h>
45#include <linux/thermal.h> 46#include <linux/thermal.h>
46#include <acpi/acpi_bus.h> 47#include <acpi/acpi_bus.h>
@@ -765,7 +766,7 @@ static int thermal_notify(struct thermal_zone_device *thermal, int trip,
765 766
766 acpi_bus_generate_proc_event(tz->device, type, 1); 767 acpi_bus_generate_proc_event(tz->device, type, 1);
767 acpi_bus_generate_netlink_event(tz->device->pnp.device_class, 768 acpi_bus_generate_netlink_event(tz->device->pnp.device_class,
768 tz->device->dev.bus_id, type, 1); 769 dev_name(&tz->device->dev), type, 1);
769 770
770 if (trip_type == THERMAL_TRIP_CRITICAL && nocrt) 771 if (trip_type == THERMAL_TRIP_CRITICAL && nocrt)
771 return 1; 772 return 1;