From 0bd5ce93d7ba44d03fa7108d53a789c72957c79d Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Sat, 5 Nov 2011 14:25:29 +0100 Subject: [PATCH] Fix misleading message reporting all VGA devices as discrete --- bbswitch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index 75ab61d..b8db479 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -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); } - 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); }