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-dm644x-evm.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-dm644x-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm644x-evm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index 95b55aae1366..5bf024784738 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c @@ -768,6 +768,8 @@ static __init void davinci_evm_init(void) struct clk *aemif_clk; struct davinci_soc_info *soc_info = &davinci_soc_info; + dm644x_init_devices(); + ret = dm644x_gpio_register(); if (ret) pr_warn("%s: GPIO init failed: %d\n", __func__, ret); |