Fix misleading message reporting all VGA devices as discrete

This commit is contained in:
Lekensteyn 2011-11-05 14:25:29 +01:00
parent 3b4f224830
commit 0bd5ce93d7

View File

@ -165,10 +165,10 @@ static int __init bbswitch_init(void) {
if (pdev->vendor != PCI_VENDOR_ID_INTEL) {
dis_dev = pdev;
dis_handle = handle;
}
acpi_get_name(handle, ACPI_FULL_PATHNAME, &buf);
printk(KERN_INFO "bbswitch: Found discrete VGA device %s: %s\n",
dev_name(&pdev->dev), (char *)buf.pointer);
}
kfree(buf.pointer);
}