[PATCH v2] ARM: davinci: dm644x: remove unnecessary postcore_initcall()
David Lechner
david at lechnology.com
Sun Apr 8 13:11:26 PDT 2018
On 04/06/2018 07:38 AM, Sekhar Nori wrote:
> dm644x_init_devices() is unnecessarily implemented as a
> postcore_initcall().
>
> This does not cause any issues now, but creates issues when
> converting to common clock framework where clocks themselves
> become platform devices and are initialized later. Because of
> this, device clock acquisition and runtime PM on that device
> fails.
>
> Move the call to .init_machine() callback along with rest of
> platform device's registration.
>
> While at it, convert it to return void since return value is
> ignored by caller anyway.
>
> Signed-off-by: Sekhar Nori <nsekhar at ti.com>
> ---
Reviewed-by: David Lechner <david at lechnology.com>
More information about the linux-arm-kernel
mailing list