bbswitch: fix misleading error message about _DSM when toggling card
This commit is contained in:
parent
cce4ffd2f7
commit
46b9032921
@ -221,7 +221,7 @@ static void bbswitch_off(void) {
|
|||||||
pci_disable_device(dis_dev);
|
pci_disable_device(dis_dev);
|
||||||
pci_set_power_state(dis_dev, PCI_D3hot);
|
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"
|
printk(KERN_WARNING "bbswitch: The discrete card could not be disabled"
|
||||||
" by a _DSM call\n");
|
" by a _DSM call\n");
|
||||||
}
|
}
|
||||||
@ -232,7 +232,7 @@ static void bbswitch_on(void) {
|
|||||||
|
|
||||||
printk(KERN_INFO "bbswitch: enabling discrete graphics\n");
|
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"
|
printk(KERN_WARNING "bbswitch: The discrete card could not be enabled"
|
||||||
" by a _DSM call\n");
|
" by a _DSM call\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user