diff options
Diffstat (limited to 'drivers/thermal/thermal_sys.c')
-rw-r--r-- | drivers/thermal/thermal_sys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index fe07462d5947..8171ca17b936 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c | |||
@@ -579,7 +579,7 @@ static void thermal_release(struct device *dev) | |||
579 | struct thermal_zone_device *tz; | 579 | struct thermal_zone_device *tz; |
580 | struct thermal_cooling_device *cdev; | 580 | struct thermal_cooling_device *cdev; |
581 | 581 | ||
582 | if (!strncmp(dev->bus_id, "thermal_zone", sizeof "thermal_zone" - 1)) { | 582 | if (!strncmp(dev_name(dev), "thermal_zone", sizeof "thermal_zone" - 1)) { |
583 | tz = to_thermal_zone(dev); | 583 | tz = to_thermal_zone(dev); |
584 | kfree(tz); | 584 | kfree(tz); |
585 | } else { | 585 | } else { |
@@ -630,7 +630,7 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *type, | |||
630 | cdev->ops = ops; | 630 | cdev->ops = ops; |
631 | cdev->device.class = &thermal_class; | 631 | cdev->device.class = &thermal_class; |
632 | cdev->devdata = devdata; | 632 | cdev->devdata = devdata; |
633 | sprintf(cdev->device.bus_id, "cooling_device%d", cdev->id); | 633 | dev_set_name(&cdev->device, "cooling_device%d", cdev->id); |
634 | result = device_register(&cdev->device); | 634 | result = device_register(&cdev->device); |
635 | if (result) { | 635 | if (result) { |
636 | release_idr(&thermal_cdev_idr, &thermal_idr_lock, cdev->id); | 636 | release_idr(&thermal_cdev_idr, &thermal_idr_lock, cdev->id); |
@@ -769,7 +769,7 @@ struct thermal_zone_device *thermal_zone_device_register(char *type, | |||
769 | tz->device.class = &thermal_class; | 769 | tz->device.class = &thermal_class; |
770 | tz->devdata = devdata; | 770 | tz->devdata = devdata; |
771 | tz->trips = trips; | 771 | tz->trips = trips; |
772 | sprintf(tz->device.bus_id, "thermal_zone%d", tz->id); | 772 | dev_set_name(&tz->device, "thermal_zone%d", tz->id); |
773 | result = device_register(&tz->device); | 773 | result = device_register(&tz->device); |
774 | if (result) { | 774 | if (result) { |
775 | release_idr(&thermal_tz_idr, &thermal_idr_lock, tz->id); | 775 | release_idr(&thermal_tz_idr, &thermal_idr_lock, tz->id); |