acpi: Remove sysfs_create_link from video driver

The acpi video driver attempts to explicitly create a sysfs link between
the acpi device and the associated PCI device. However, we're now also
doing this from the backlight core, which means that we get a backtrace
caused by a duplicate file. Remove the code and leave it up to the
backlight core.

Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Alessandro Suardi <alessandro.suardi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Matthew Garrett and committed by Linus Torvalds 445aef37 03e4970c

-6
-6
drivers/acpi/video.c
··· 824 device->backlight->props.brightness = 825 acpi_video_get_brightness(device->backlight); 826 827 - result = sysfs_create_link(&device->backlight->dev.kobj, 828 - &device->dev->dev.kobj, "device"); 829 - if (result) 830 - printk(KERN_ERR PREFIX "Create sysfs link\n"); 831 - 832 device->cooling_dev = thermal_cooling_device_register("LCD", 833 device->dev, &video_cooling_ops); 834 if (IS_ERR(device->cooling_dev)) { ··· 1376 "Cant remove video notify handler\n"); 1377 } 1378 if (device->backlight) { 1379 - sysfs_remove_link(&device->backlight->dev.kobj, "device"); 1380 backlight_device_unregister(device->backlight); 1381 device->backlight = NULL; 1382 }
··· 824 device->backlight->props.brightness = 825 acpi_video_get_brightness(device->backlight); 826 827 device->cooling_dev = thermal_cooling_device_register("LCD", 828 device->dev, &video_cooling_ops); 829 if (IS_ERR(device->cooling_dev)) { ··· 1381 "Cant remove video notify handler\n"); 1382 } 1383 if (device->backlight) { 1384 backlight_device_unregister(device->backlight); 1385 device->backlight = NULL; 1386 }