Merge branch 'video' into release
authorLen Brown <len.brown@intel.com>
Sat, 19 Sep 2009 06:31:39 +0000 (02:31 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 19 Sep 2009 06:31:39 +0000 (02:31 -0400)
Conflicts:
drivers/acpi/video.c

Signed-off-by: Len Brown <len.brown@intel.com>
1  2 
drivers/acpi/video.c

@@@ -2006,18 -2028,15 +2030,18 @@@ static int acpi_video_bus_put_one_devic
        status = acpi_remove_notify_handler(device->dev->handle,
                                            ACPI_DEVICE_NOTIFY,
                                            acpi_video_device_notify);
 -      sysfs_remove_link(&device->backlight->dev.kobj, "device");
 -      backlight_device_unregister(device->backlight);
 +      if (device->backlight) {
 +              sysfs_remove_link(&device->backlight->dev.kobj, "device");
 +              backlight_device_unregister(device->backlight);
 +              device->backlight = NULL;
 +      }
-       if (device->cdev) {
+       if (device->cooling_dev) {
                sysfs_remove_link(&device->dev->dev.kobj,
                                  "thermal_cooling");
-               sysfs_remove_link(&device->cdev->device.kobj,
+               sysfs_remove_link(&device->cooling_dev->device.kobj,
                                  "device");
-               thermal_cooling_device_unregister(device->cdev);
-               device->cdev = NULL;
+               thermal_cooling_device_unregister(device->cooling_dev);
+               device->cooling_dev = NULL;
        }
        video_output_unregister(device->output_dev);