* [PATCH] floppy: switch driver to dev_pm_ops
@ 2009-07-08 12:48 Frans Pop
0 siblings, 0 replies; only message in thread
From: Frans Pop @ 2009-07-08 12:48 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Rafael J. Wysocki, akpm
Gets rid of the following warning:
Platform driver 'floppy' needs updating - please use dev_pm_ops
Signed-off-by: Frans Pop <elendil@planet.nl>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
---
Looked straightforward enough for me to give it a shot.
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 91b7530..597fe3a 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -4151,7 +4151,7 @@ static void floppy_device_release(struct device *dev)
{
}
-static int floppy_resume(struct platform_device *dev)
+static int floppy_resume(struct device *dev)
{
int fdc;
@@ -4162,10 +4162,14 @@ static int floppy_resume(struct platform_device *dev)
return 0;
}
-static struct platform_driver floppy_driver = {
+static struct dev_pm_ops floppy_pm_ops = {
.resume = floppy_resume,
+};
+
+static struct platform_driver floppy_driver = {
.driver = {
.name = "floppy",
+ .pm = &floppy_pm_ops,
},
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-08 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-08 12:48 [PATCH] floppy: switch driver to dev_pm_ops Frans Pop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome