diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 6659bdd2a454..3c9bb85a6a93 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -1881,6 +1881,7 @@ static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data) | |||
1881 | return; | 1881 | return; |
1882 | } | 1882 | } |
1883 | 1883 | ||
1884 | static int instance; | ||
1884 | static int acpi_video_bus_add(struct acpi_device *device) | 1885 | static int acpi_video_bus_add(struct acpi_device *device) |
1885 | { | 1886 | { |
1886 | int result = 0; | 1887 | int result = 0; |
@@ -1896,6 +1897,13 @@ static int acpi_video_bus_add(struct acpi_device *device) | |||
1896 | if (!video) | 1897 | if (!video) |
1897 | return -ENOMEM; | 1898 | return -ENOMEM; |
1898 | 1899 | ||
1900 | /* a hack to fix the duplicate name "VID" problem on T61 */ | ||
1901 | if (!strcmp(device->pnp.bus_id, "VID")) { | ||
1902 | if (instance) | ||
1903 | device->pnp.bus_id[3] = '0' + instance; | ||
1904 | instance ++; | ||
1905 | } | ||
1906 | |||
1899 | video->device = device; | 1907 | video->device = device; |
1900 | strcpy(acpi_device_name(device), ACPI_VIDEO_BUS_NAME); | 1908 | strcpy(acpi_device_name(device), ACPI_VIDEO_BUS_NAME); |
1901 | strcpy(acpi_device_class(device), ACPI_VIDEO_CLASS); | 1909 | strcpy(acpi_device_class(device), ACPI_VIDEO_CLASS); |