diff options
-rw-r--r-- | drivers/block/floppy.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 91b753013780..2b387c2260d8 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -4151,7 +4151,7 @@ static void floppy_device_release(struct device *dev) | |||
4151 | { | 4151 | { |
4152 | } | 4152 | } |
4153 | 4153 | ||
4154 | static int floppy_resume(struct platform_device *dev) | 4154 | static int floppy_resume(struct device *dev) |
4155 | { | 4155 | { |
4156 | int fdc; | 4156 | int fdc; |
4157 | 4157 | ||
@@ -4162,10 +4162,15 @@ static int floppy_resume(struct platform_device *dev) | |||
4162 | return 0; | 4162 | return 0; |
4163 | } | 4163 | } |
4164 | 4164 | ||
4165 | static struct platform_driver floppy_driver = { | 4165 | static struct dev_pm_ops floppy_pm_ops = { |
4166 | .resume = floppy_resume, | 4166 | .resume = floppy_resume, |
4167 | .restore = floppy_resume, | ||
4168 | }; | ||
4169 | |||
4170 | static struct platform_driver floppy_driver = { | ||
4167 | .driver = { | 4171 | .driver = { |
4168 | .name = "floppy", | 4172 | .name = "floppy", |
4173 | .pm = &floppy_pm_ops, | ||
4169 | }, | 4174 | }, |
4170 | }; | 4175 | }; |
4171 | 4176 | ||