[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201206172230.40711.rjw@sisk.pl>
Date: Sun, 17 Jun 2012 22:30:40 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: platform-driver-x86@...r.kernel.org
Cc: Henrique de Moraes Holschuh <ibm-acpi@....eng.br>,
LKML <linux-kernel@...r.kernel.org>,
Linux PM list <linux-pm@...r.kernel.org>,
Matthew Garrett <mjg59@...f.ucam.org>,
Joey Lee <jlee@...ell.com>,
Jesse Barnes <jesse.barnes@...el.com>,
Jesse Barnes <jbarnes@...tuousgeek.org>
Subject: [PATCH 5/5] intel_ips: Remove empty legacy PM callbacks
From: Rafael J. Wysocki <rjw@...k.pl>
The legacy PM callbacks provided by the Intel IPS driver are
empty routines returning 0, so they can be safely dropped.
Signed-off-by: Rafael J. Wysocki <rjw@...k.pl>
---
drivers/platform/x86/intel_ips.c | 17 -----------------
1 file changed, 17 deletions(-)
Index: linux/drivers/platform/x86/intel_ips.c
===================================================================
--- linux.orig/drivers/platform/x86/intel_ips.c
+++ linux/drivers/platform/x86/intel_ips.c
@@ -1697,21 +1697,6 @@ static void ips_remove(struct pci_dev *d
dev_dbg(&dev->dev, "IPS driver removed\n");
}
-#ifdef CONFIG_PM
-static int ips_suspend(struct pci_dev *dev, pm_message_t state)
-{
- return 0;
-}
-
-static int ips_resume(struct pci_dev *dev)
-{
- return 0;
-}
-#else
-#define ips_suspend NULL
-#define ips_resume NULL
-#endif /* CONFIG_PM */
-
static void ips_shutdown(struct pci_dev *dev)
{
}
@@ -1721,8 +1706,6 @@ static struct pci_driver ips_pci_driver
.id_table = ips_id_table,
.probe = ips_probe,
.remove = ips_remove,
- .suspend = ips_suspend,
- .resume = ips_resume,
.shutdown = ips_shutdown,
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists