]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: proc_dir_entry 'video/VGA' already registered
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 3 Feb 2009 03:55:01 +0000 (22:55 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 3 Feb 2009 03:55:01 +0000 (22:55 -0500)
eliminate the duplicate the name of "VGA"

http://bugzilla.kernel.org/show_bug.cgi?id=12514

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index f261737636da7a5550c6ac26ab3d178c6220ab9a..1981eaf9fa7b426a6e94e9e7f1663458221dd8b8 100644 (file)
@@ -2006,6 +2006,12 @@ static int acpi_video_bus_add(struct acpi_device *device)
                        device->pnp.bus_id[3] = '0' + instance;
                instance ++;
        }
+       /* a hack to fix the duplicate name "VGA" problem on Pa 3553 */
+       if (!strcmp(device->pnp.bus_id, "VGA")) {
+               if (instance)
+                       device->pnp.bus_id[3] = '0' + instance;
+               instance++;
+       }
 
        video->device = device;
        strcpy(acpi_device_name(device), ACPI_VIDEO_BUS_NAME);