From: Russell King Date: Sun, 14 Aug 2011 08:13:48 +0000 (+0100) Subject: PM: add runtime PM support to core Primecell driver X-Git-Tag: v3.2-rc1~147^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92b97f0aaccbf9de4a29696e6253bf82e8850d1d;p=pandora-kernel.git 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 Acked-by: Rafael J. Wysocki Signed-off-by: Russell King --- Reading git-diff-tree failed