]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Runtime: Lenient generic runtime pm callbacks
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 8 Sep 2010 22:46:16 +0000 (00:46 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:41 +0000 (01:57 +0200)
commit8451e7e62c0cace822a49ce5af35cae9c7ea4f2a
treea1e814aebe12a2b560b505a3763dfdbf8ad90d8a
parent462fe7ddd85d5133e4a27afb740d68f2aa72ce98
PM / Runtime: Lenient generic runtime pm callbacks

Allow drivers, that belong to subsystems which use the generic
runtime pm callbacks, not to define runtime pm suspend/resume handlers,
by implicitly assuming success in such cases.

This is needed to eliminate nop handlers that would otherwise be
necessary by drivers which enable runtime pm, but don't need
to do anything when their devices are runtime-suspended/resumed.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/generic_ops.c