From ca16c538fdd0efed57ee49fa5b69e53be3dd4c8c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 6 Jun 2016 02:24:56 +0200 Subject: [PATCH] Remove suspend/resume notifier About to move to a PCI driver model where the device does not have to be resumed, let's remove this code. --- bbswitch.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index 00a8f2c..224f298 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -96,9 +96,6 @@ static char dis_dev_name[16]; static struct pci_dev *dis_dev; static acpi_handle dis_handle; -/* whether the card was off before suspend or not; on: 0, off: 1 */ -static int dis_before_suspend_disabled; - static char *buffer_to_string(const char *buffer, size_t n, char *target) { int i; for (i=0; idev), is_card_disabled() ? "off" : "on"); dis_dev_put(); - - if (nb.notifier_call) - unregister_pm_notifier(&nb); } module_init(bbswitch_init);