From 46b903292140463d30b51d05475eb66b9a0112c5 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Thu, 15 Dec 2011 22:38:43 +0100 Subject: [PATCH] bbswitch: fix misleading error message about _DSM when toggling card --- bbswitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index 56d47cd..ff989b8 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -221,7 +221,7 @@ static void bbswitch_off(void) { pci_disable_device(dis_dev); pci_set_power_state(dis_dev, PCI_D3hot); - if (!bbswitch_acpi_off()) + if (bbswitch_acpi_off()) printk(KERN_WARNING "bbswitch: The discrete card could not be disabled" " by a _DSM call\n"); } @@ -232,7 +232,7 @@ static void bbswitch_on(void) { printk(KERN_INFO "bbswitch: enabling discrete graphics\n"); - if (!bbswitch_acpi_on()) + if (bbswitch_acpi_on()) printk(KERN_WARNING "bbswitch: The discrete card could not be enabled" " by a _DSM call\n");