[RFC/NOT FOR MERGING 1/3] arm: omap: use generic implementation if !od
Felipe Balbi
balbi at ti.com
Thu Feb 14 12:57:19 EST 2013
On Thu, Feb 14, 2013 at 11:20:43AM +0000, Russell King - ARM Linux wrote:
> On Thu, Feb 14, 2013 at 01:15:52PM +0200, Felipe Balbi wrote:
> > struct platform_device *pdev = to_platform_device(dev);
> > + struct omap_device *od = to_omap_device(pdev);
> > int ret;
> >
> > ret = pm_generic_runtime_suspend(dev);
> >
> > + if (!od)
> > + goto out;
> > +
> > if (!ret)
>
> What's wrong with the single line change per function of:
>
> - if (!ret)
> + if (!ret && to_omap_device(pdev))
>
> ?
nothing, will change. Let me just check if the other folks are ok with
the patchset.
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130214/7bc41cb4/attachment.sig>
More information about the linux-arm-kernel
mailing list