]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67a2bd9dbdec9bada0c1d8777057060675a95251
tree4b074b7e9418d79e432b79b88db8a939467048a5
parentd4b6883a889b59c9eaa41dce6c00ef952a2e0692
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