diff options
author | David Lechner <david@lechnology.com> | 2018-05-18 18:48:28 +0200 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2018-06-26 12:50:03 +0200 |
commit | bfd107bd3b8ba4ce5f5536fe1d69d0ba06d0e741 (patch) | |
tree | 3fb241b481e92f547be7943846df1c2b78b8a482 /arch/arm/mach-davinci/pm_domain.c | |
parent | ARM: davinci: add device tree support to timer (diff) | |
download | linux-bfd107bd3b8ba4ce5f5536fe1d69d0ba06d0e741.tar.xz linux-bfd107bd3b8ba4ce5f5536fe1d69d0ba06d0e741.zip |
ARM: davinci: da8xx-dt: switch to device tree clocks
This removes all of the clock init code from da8xx-dt.c. This includes
all of the OF_DEV_AUXDATA that was just used for looking up clocks.
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/pm_domain.c')
-rw-r--r-- | arch/arm/mach-davinci/pm_domain.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/pm_domain.c b/arch/arm/mach-davinci/pm_domain.c index 78eac2c0c146..e251fd593bfd 100644 --- a/arch/arm/mach-davinci/pm_domain.c +++ b/arch/arm/mach-davinci/pm_domain.c @@ -13,6 +13,7 @@ #include <linux/pm_runtime.h> #include <linux/pm_clock.h> #include <linux/platform_device.h> +#include <linux/of.h> static struct dev_pm_domain davinci_pm_domain = { .ops = { @@ -28,6 +29,10 @@ static struct pm_clk_notifier_block platform_bus_notifier = { static int __init davinci_pm_runtime_init(void) { + if (of_have_populated_dt()) + return 0; + + /* Use pm_clk as fallback if we're not using genpd. */ pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier); return 0; |