diff options
author | Sekhar Nori <nsekhar@ti.com> | 2018-04-06 15:38:20 +0300 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-05-02 12:32:25 +0300 |
commit | 8e730c7f907a7ea4af760eb2058ca44b72cfb518 (patch) | |
tree | ed2ff3a6437b2b271c05eb4fa2a0b5bf99218a72 /arch/arm/mach-davinci/board-sffsdr.c | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) | |
download | linux-8e730c7f907a7ea4af760eb2058ca44b72cfb518.tar.xz |
ARM: davinci: dm644x: remove unnecessary postcore_initcall()
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.
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-sffsdr.c')
-rw-r--r-- | arch/arm/mach-davinci/board-sffsdr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c index 2922da9d1684..e7c1728b0833 100644 --- a/arch/arm/mach-davinci/board-sffsdr.c +++ b/arch/arm/mach-davinci/board-sffsdr.c @@ -134,6 +134,8 @@ static __init void davinci_sffsdr_init(void) { struct davinci_soc_info *soc_info = &davinci_soc_info; + dm644x_init_devices(); + platform_add_devices(davinci_sffsdr_devices, ARRAY_SIZE(davinci_sffsdr_devices)); sffsdr_init_i2c(); |