mtd: Switch to PM ops
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 6 Apr 2015 10:00:39 +0000 (12:00 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 May 2015 07:18:22 +0000 (00:18 -0700)
Use dev_pm_ops instead of the legacy suspend/resume callbacks for the MTD
class suspend and resume operations.

While we are at it slightly reorder things to avoid the need for forward
declarations.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdcore.c

Simple merge