diff options
author | David Lechner <david@lechnology.com> | 2018-05-25 21:11:49 +0300 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2018-05-30 22:48:44 +0300 |
commit | 043eaa70ad736380a631e820e32ad9176b020887 (patch) | |
tree | cb13733532485db51dbcbb238138fb4470ba8ec2 /drivers/clk/davinci/psc-dm644x.c | |
parent | 17d8bacf19bb5ea5f258f9c0644d5688f9ba03a9 (diff) | |
download | linux-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-dm644x.c')
-rw-r--r-- | drivers/clk/davinci/psc-dm644x.c | 3 |
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); } |