diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-22 09:08:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-23 13:05:12 +0100 |
commit | fe73684aa82ed52dc6d0d049772b620e6f7c8dbb (patch) | |
tree | ec622561df8a4c880808dbb377998935b3af0cc7 /drivers/of | |
parent | 73f8fa438095a8792eb97dad01c4ef2b36f50cbe (diff) | |
download | barebox-fe73684aa82ed52dc6d0d049772b620e6f7c8dbb.tar.gz |
clk: of: drop arguments from of_clk_init()
of_clk_init() should be used to register clock drivers declared with
CLK_OF_DECLARE and nothing else, so there shouldn't be a need to call
it with a non NULL "matches" argument.
Also there is no point in calling this function with another device tree
than the barebox live tree.
Drop both arguments.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 82dde9a3f0..01bb7e3906 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1757,7 +1757,7 @@ int barebox_register_of(struct device_node *root) of_fix_tree(root); if (IS_ENABLED(CONFIG_OFDEVICE)) { - of_clk_init(root, NULL); + of_clk_init(); if (!deep_probe_is_supported()) return of_probe(); } |