of/platform: Implement support for dev_pm_ops
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 12 Oct 2009 05:50:41 +0000 (05:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:20:53 +0000 (17:20 +1100)
commitd35ef90bf9e7cab9aa85e9c0724bd1ac6f784601
tree7236409292af05f7ad27fece43148e99487f7535
parent3d541c4b7f6efd55a98189afd1b2f1c9d048c1b3
of/platform: Implement support for dev_pm_ops

Linux power management subsystem supports vast amount of new PM
callbacks that are crucial for proper suspend and hibernation support
in drivers.

This patch implements support for dev_pm_ops, preserving support
for legacy callbacks.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/of/platform.c