floppy: Switch driver to dev_pm_ops
authorFrans Pop <elendil@planet.nl>
Sat, 25 Jul 2009 20:24:54 +0000 (22:24 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Sep 2009 18:26:59 +0000 (20:26 +0200)
Gets rid of the following warning:
Platform driver 'floppy' needs updating - please use dev_pm_ops

[rjw: Fixed up the definition of floppy_pm_ops.]

Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/block/floppy.c

index 91b753013780f8a1bcb113159970abde34f4e127..2b387c2260d829e9f441ecc08a98b823de10ba52 100644 (file)
@@ -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,15 @@ 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,
+       .restore = floppy_resume,
+};
+
+static struct platform_driver floppy_driver = {
        .driver = {
                .name = "floppy",
+               .pm = &floppy_pm_ops,
        },
 };