Skip to content

Commit

Permalink
ACPI: update thermal for bus_id removal
Browse files Browse the repository at this point in the history
> drivers/acpi/thermal.c: In function 'thermal_notify':
> drivers/acpi/thermal.c:768: error: 'struct device' has no member named 'bus_id'
>
> Caused by commit b1569e9 ("ACPI: move
> thermal trip handling to generic thermal layer") interacting with commit
> d4a078fca590911cdf87a8eaffee1b6e643c2558 ("driver core: get rid of struct
> device's bus_id string array").
>

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Stephen Rothwell authored and Len Brown committed Mar 27, 2009
1 parent b1569e9 commit f6f5c45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <linux/kmod.h>
#include <linux/seq_file.h>
#include <linux/reboot.h>
#include <linux/device.h>
#include <asm/uaccess.h>
#include <linux/thermal.h>
#include <acpi/acpi_bus.h>
Expand Down Expand Up @@ -765,7 +766,7 @@ static int thermal_notify(struct thermal_zone_device *thermal, int trip,

acpi_bus_generate_proc_event(tz->device, type, 1);
acpi_bus_generate_netlink_event(tz->device->pnp.device_class,
tz->device->dev.bus_id, type, 1);
dev_name(&tz->device->dev), type, 1);

if (trip_type == THERMAL_TRIP_CRITICAL && nocrt)
return 1;
Expand Down

0 comments on commit f6f5c45

Please sign in to comment.