summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/pm_domain.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-05-18 11:48:28 -0500
committerSekhar Nori <nsekhar@ti.com>2018-06-26 16:20:03 +0530
commitbfd107bd3b8ba4ce5f5536fe1d69d0ba06d0e741 (patch)
tree3fb241b481e92f547be7943846df1c2b78b8a482 /arch/arm/mach-davinci/pm_domain.c
parent62604824d234ddf456dd4a97f52bcd0f4e534446 (diff)
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.c5
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;