]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/spi/spi-pl022.c
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>
Thu, 22 Sep 2011 15:21:42 +0000 (16:21 +0100)
commit92b97f0aaccbf9de4a29696e6253bf82e8850d1d
tree0da0f934d8451ca450186c3a77d4fb6de7909f4b
parent93ee7a9340d64f20295aacc3fb6a22b759323280
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