summaryrefslogtreecommitdiff
path: root/drivers/clk/davinci/psc-dm355.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-05-25 21:11:49 +0300
committerMichael Turquette <mturquette@baylibre.com>2018-05-30 22:48:44 +0300
commit043eaa70ad736380a631e820e32ad9176b020887 (patch)
treecb13733532485db51dbcbb238138fb4470ba8ec2 /drivers/clk/davinci/psc-dm355.c
parent17d8bacf19bb5ea5f258f9c0644d5688f9ba03a9 (diff)
downloadlinux-043eaa70ad736380a631e820e32ad9176b020887.tar.xz
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-dm355.c')
-rw-r--r--drivers/clk/davinci/psc-dm355.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/davinci/psc-dm355.c b/drivers/clk/davinci/psc-dm355.c
index 128e7345b20c..ddd250107c4e 100644
--- a/drivers/clk/davinci/psc-dm355.c
+++ b/drivers/clk/davinci/psc-dm355.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>
@@ -68,7 +69,7 @@ static const struct davinci_lpsc_clk_info dm355_psc_info[] = {
{ }
};
-static int dm355_psc_init(struct device *dev, void __iomem *base)
+int dm355_psc_init(struct device *dev, void __iomem *base)
{
return davinci_psc_register_clocks(dev, dm355_psc_info, 42, base);
}