summaryrefslogtreecommitdiffstats
path: root/drivers/clk/davinci/psc-dm644x.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-05-25 20:11:49 +0200
committerMichael Turquette <mturquette@baylibre.com>2018-05-30 21:48:44 +0200
commit043eaa70ad736380a631e820e32ad9176b020887 (patch)
treecb13733532485db51dbcbb238138fb4470ba8ec2 /drivers/clk/davinci/psc-dm644x.c
parentclk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE (diff)
downloadlinux-043eaa70ad736380a631e820e32ad9176b020887.tar.xz
linux-043eaa70ad736380a631e820e32ad9176b020887.zip
clk: davinci: psc: allow for dev == NULL
On some davinci SoCs, we need to register the PSC clocks during early boot because they are needed for clocksource/clockevent. These changes allow for dev == NULL because in this case, we won't have a platform device for the clocks. Signed-off-by: David Lechner <david@lechnology.com> Reviewed-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/20180525181150.17873-9-david@lechnology.com
Diffstat (limited to 'drivers/clk/davinci/psc-dm644x.c')
-rw-r--r--drivers/clk/davinci/psc-dm644x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/davinci/psc-dm644x.c b/drivers/clk/davinci/psc-dm644x.c
index c22367baa46f..fc0230e3a3d6 100644
--- a/drivers/clk/davinci/psc-dm644x.c
+++ b/drivers/clk/davinci/psc-dm644x.c
@@ -6,6 +6,7 @@
*/
#include <linux/clk-provider.h>
+#include <linux/clk/davinci.h>
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/init.h>
@@ -63,7 +64,7 @@ static const struct davinci_lpsc_clk_info dm644x_psc_info[] = {
{ }
};
-static int dm644x_psc_init(struct device *dev, void __iomem *base)
+int dm644x_psc_init(struct device *dev, void __iomem *base)
{
return davinci_psc_register_clocks(dev, dm644x_psc_info, 41, base);
}