thermal.c (908cf4b925e419bc74f3297b2f0e51d6f8a81da2) thermal.c (fc3a8828b139c24aade3f9d608775e36c248f8f5)
1/*
2 * acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 41 $)
3 *
4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

--- 1165 unchanged lines hidden (view full) ---

1174 if (ACPI_FAILURE(status)) {
1175 ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
1176 "Error attaching device data\n"));
1177 return -ENODEV;
1178 }
1179
1180 tz->tz_enabled = 1;
1181
1/*
2 * acpi_thermal.c - ACPI Thermal Zone Driver ($Revision: 41 $)
3 *
4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

--- 1165 unchanged lines hidden (view full) ---

1174 if (ACPI_FAILURE(status)) {
1175 ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
1176 "Error attaching device data\n"));
1177 return -ENODEV;
1178 }
1179
1180 tz->tz_enabled = 1;
1181
1182 printk(KERN_INFO PREFIX "%s is registered as thermal_zone%d\n",
1183 tz->device->dev.bus_id, tz->thermal_zone->id);
1182 dev_info(&tz->device->dev, "registered as thermal_zone%d\n",
1183 tz->thermal_zone->id);
1184 return 0;
1185}
1186
1187static void acpi_thermal_unregister_thermal_zone(struct acpi_thermal *tz)
1188{
1189 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
1190 sysfs_remove_link(&tz->thermal_zone->device.kobj, "device");
1191 thermal_zone_device_unregister(tz->thermal_zone);

--- 646 unchanged lines hidden ---
1184 return 0;
1185}
1186
1187static void acpi_thermal_unregister_thermal_zone(struct acpi_thermal *tz)
1188{
1189 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
1190 sysfs_remove_link(&tz->thermal_zone->device.kobj, "device");
1191 thermal_zone_device_unregister(tz->thermal_zone);

--- 646 unchanged lines hidden ---