Hello.

On 17-09-2012 14:37, Vipul Kumar Samar wrote:

> clk_{un}prepare is mandatory for platforms using common clock framework. Add
> clk_{un}prepare() support for spi-pl022 runtime PM.

> Signed-off-by: Vipul Kumar Samar <[email protected]>
[...]

> @@ -2342,10 +2342,13 @@ static int pl022_runtime_suspend(struct device *dev)
>   static int pl022_runtime_resume(struct device *dev)
>   {
>       struct pl022 *pl022 = dev_get_drvdata(dev);
> +     int ret = 0;

    Don't need to init it at all.

> -     clk_enable(pl022->clk);
> +     ret = clk_prepare_enable(pl022->clk);
> +     if (ret)
> +             dev_err(dev, "could not enable SSP/SPI bus clock\n");
>
> -     return 0;
> +     return ret;
>   }
>   #endif

WBR, Sergei


------------------------------------------------------------------------------
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/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to