From 41da066752dc1621ea3bf3700454c7d55bdda6d3 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Sat, 10 Dec 2011 23:01:16 +0100 Subject: [PATCH] bbswitcj_off: Perform _DSM call before the _PS3 routines --- bbswitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index 90f700e..81b474b 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -104,12 +104,12 @@ static void bbswitch_off(void) { printk(KERN_INFO "bbswitch: disabling discrete graphics\n"); + bbswitch_acpi_off(); + pci_save_state(dis_dev); pci_clear_master(dis_dev); pci_disable_device(dis_dev); pci_set_power_state(dis_dev, PCI_D3hot); - - bbswitch_acpi_off(); } static void bbswitch_on(void) {