]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM: add runtime PM support to core Primecell driver
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 14 Aug 2011 08:13:48 +0000 (09:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 24 Aug 2011 07:13:38 +0000 (08:13 +0100)
commit67fc8b9fe70ca7f6f510e140184a7ae6c5c20a33
tree917c5c99ea9fc6b1aaafb63cfbe9890579d543db
parent322a8b034003c0d46d39af85bf24fee27b902f48
PM: add runtime PM support to core Primecell driver

Add runtime PM support to the core Primecell driver, following the PCI
model of how this is done.

Rather than having every driver fiddle about with enabling runtime PM,
that's dealt with in the core and instead, drivers just do a put() in
their probe and a balancing get() in their remove function to activate
runtime PM for the device.

As we're dealing with enabling runtime PM in the core, fix up spi-pl022
as it must not enable and disable runtime PM itself anymore.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
drivers/spi/spi-pl022.c