Hi Kevin,
On Fri, Feb 15, 2013 at 07:28:22AM -0800, Kevin Hilman wrote:
> > @@ -796,13 +796,18 @@ static int __init omap_early_device_register(struct
> > platform_device *pdev)
> > static int _od_runtime_suspend(struct device *dev)
> > {
> > 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;
> > +
>
> Rather than adding a check for every function, I think you will get the
> effect by simply not hooking up the PM domain.
>
> IOW, in omap_device_build_from_dt(), conditionalize:
>
> pdev->dev.pm_domain = &omap_device_pm_domain;
>
> then none of the callbacks will be called in the first place, so they
> won't need to be conditionalized.
>
> Without a PM domain, they will fallback to the bus level hooks, which in
> this case will be the platform_bus hooks, which will just call the
> pm_generic functions.good point, let's just sort out the other comments first though ;-) -- balbi
signature.asc
Description: Digital signature
