diff mbox

spi/pl022: fix spi-pl022 pm enable at probe

Message ID 1345217321-32283-1-git-send-email-linus.walleij@stericsson.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Linus Walleij Aug. 17, 2012, 3:28 p.m. UTC
From: Michel JAOUEN <michel.jaouen@stericsson.com>

amba drivers does not need to enable pm runtime at probe.
amba_probe already enables pm runtime.

This rids this warning in the ux500 boot log:
ssp-pl022 ssp0: Unbalanced pm_runtime_enable!

Signed-off-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/spi/spi-pl022.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Brown Aug. 17, 2012, 9:47 p.m. UTC | #1
On Fri, Aug 17, 2012 at 05:28:41PM +0200, Linus Walleij wrote:
> From: Michel JAOUEN <michel.jaouen@stericsson.com>
> 
> amba drivers does not need to enable pm runtime at probe.
> amba_probe already enables pm runtime.
> 
> This rids this warning in the ux500 boot log:
> ssp-pl022 ssp0: Unbalanced pm_runtime_enable!

Applied, thanks.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
diff mbox

Patch

diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index aab518e..6abbe23 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2053,7 +2053,6 @@  pl022_probe(struct amba_device *adev, const struct amba_id *id)
 	printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
 	       adev->res.start, pl022->virtbase);
 
-	pm_runtime_enable(dev);
 	pm_runtime_resume(dev);
 
 	pl022->clk = clk_get(&adev->dev, NULL);