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)
commit57b8045d13569b7d8a1861bd61b7b664e417f7bc
tree4b074b7e9418d79e432b79b88db8a939467048a5
parentb94665322b786a806a0169752ff2f35f3f467b99
mtd: Switch to PM ops

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