diff options
-rw-r--r-- | drivers/acpi/video.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1bdfb37377e3..9de143af3625 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -976,6 +976,11 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device) | |||
976 | device->backlight->props.max_brightness = device->brightness->count-3; | 976 | device->backlight->props.max_brightness = device->brightness->count-3; |
977 | kfree(name); | 977 | kfree(name); |
978 | 978 | ||
979 | result = sysfs_create_link(&device->backlight->dev.kobj, | ||
980 | &device->dev->dev.kobj, "device"); | ||
981 | if (result) | ||
982 | printk(KERN_ERR PREFIX "Create sysfs link\n"); | ||
983 | |||
979 | device->cdev = thermal_cooling_device_register("LCD", | 984 | device->cdev = thermal_cooling_device_register("LCD", |
980 | device->dev, &video_cooling_ops); | 985 | device->dev, &video_cooling_ops); |
981 | if (IS_ERR(device->cdev)) | 986 | if (IS_ERR(device->cdev)) |
@@ -1990,6 +1995,7 @@ static int acpi_video_bus_put_one_device(struct acpi_video_device *device) | |||
1990 | status = acpi_remove_notify_handler(device->dev->handle, | 1995 | status = acpi_remove_notify_handler(device->dev->handle, |
1991 | ACPI_DEVICE_NOTIFY, | 1996 | ACPI_DEVICE_NOTIFY, |
1992 | acpi_video_device_notify); | 1997 | acpi_video_device_notify); |
1998 | sysfs_remove_link(&device->backlight->dev.kobj, "device"); | ||
1993 | backlight_device_unregister(device->backlight); | 1999 | backlight_device_unregister(device->backlight); |
1994 | if (device->cdev) { | 2000 | if (device->cdev) { |
1995 | sysfs_remove_link(&device->dev->dev.kobj, | 2001 | sysfs_remove_link(&device->dev->dev.kobj, |