diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-22 09:16:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-23 13:05:12 +0100 |
commit | 3a1f0f58d32cde58d8f94e3622d134b848829cd9 (patch) | |
tree | e5c24aa872ce48d08926622128c234b5c5946ed7 /commands | |
parent | fe73684aa82ed52dc6d0d049772b620e6f7c8dbb (diff) | |
download | barebox-3a1f0f58d32cde58d8f94e3622d134b848829cd9.tar.gz |
clk: of: make of_clk_init() safe for being called multiple times
Applying device tree overlays to the barebox live tree currently works
for devices handled by regular drivers, but not for clocks which do
not have a regular driver, but instead are declared with CLK_OF_DECLARE.
To support adding such clocks with a device tree overlay we have to
call of_clk_init() again. This patch makes of_clk_init() safe for being
called multiple times. For this we have to make sure we do not register
clocks for nodes which already have a clock.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions