[PATCH v2] ARM: davinci: dm644x: remove unnecessary postcore_initcall()

Sekhar Nori nsekhar at ti.com
Sun Apr 15 23:26:55 PDT 2018


On Monday 09 April 2018 01:41 AM, David Lechner wrote:
> 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>

Applied to v4.18/soc

Thanks,
Sekhar



More information about the linux-arm-kernel mailing list