Skip to content

Commit

Permalink
floppy: Switch driver to dev_pm_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frans Pop authored and Rafael J. Wysocki committed Sep 14, 2009
1 parent 8de0307 commit c90cd33
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
},
};

Expand Down

0 comments on commit c90cd33

Please sign in to comment.