Hi Daniel,

On Wednesday, January 25, 2017, Daniel Lezcano wrote:
> > Then things work, but I'm back to managing the rollback code manually.
> >
> >
> > Any other ideas on how to get the corresponding platform_device for a
> > DT node?
> 
> No :/
> 
> So up to you.
>       - CLOCKSOURCE_OF_DECLARE consistent but need rollback
>       or
>       - platform_device but with another timer available at early time

As far as I can tell, the rollback functions don't mind if I pass NULL
pointers to them. So with CLOCKSOURCE_OF_DECLARE, my error rollback at
the end of ostm_init is basically:


err:
        if (ret) {
                clk_disable_unprepare(ostm_clk);
                iounmap(ostm->base);
                kfree(ostm);
                return ret;
        }

        return 0;
}



If I go with CLOCKSOURCE_OF_DECLARE, I can at least get rid of the early boot 
message
"clocksource_probe: no matching clocksources found"

I'll go ahead and send a v4 today with all the changes you suggested.

Thank you for your help.

Regards,
Chris

Reply via email to