platform_bus: allow custom extensions to system PM methods
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 17 Mar 2010 23:18:15 +0000 (16:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:30 +0000 (09:37 -0700)
commit190e8370b8033f746db5289e9324174564a6f5a7
tree5d6f0102abe82b15b9423ef01d0dbd83b0f43323
parentda5e4ef7fdb8f2fb0878dee3bd9d4dd10cea8cf1
platform_bus: allow custom extensions to system PM methods

When runtime PM for platform_bus was added, it allowed for platforms
to customize the runtime PM methods since they are defined as weak
symbols.

This patch allows platforms to also extend the system PM methods with
custom hooks so runtime PM and system PM extensions can be managed
together by custom platform-specific code.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Magnus Damm <damm@opensource.se>
Cc: Rafael Wysocki <rjw@sisk.pl>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c