summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-02-12 15:00:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-13 11:56:22 +0100
commit8b2104d7409fe05cf9fa00a01616933c78a708fa (patch)
treed54cbc1d5b97fd9781e04cbda89ccbe17c0d9816 /drivers
parentecebdf1af7960483df7da90b4266aa177e117fc0 (diff)
downloadbarebox-8b2104d7409fe05cf9fa00a01616933c78a708fa.tar.gz
barebox-8b2104d7409fe05cf9fa00a01616933c78a708fa.tar.xz
driver: Call of_clk_set_defaults for each probed device
So far we only honour the assigned-clocks and assigned-clock-rates device tree properties for the clock controller nodes. With this patch we also honour the properties for each device which is done by Linux as well. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index eec2a2d8a2..247456a2c6 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -36,6 +36,7 @@
#include <linux/err.h>
#include <complete.h>
#include <pinctrl.h>
+#include <linux/clk/clk-conf.h>
LIST_HEAD(device_list);
EXPORT_SYMBOL(device_list);
@@ -86,6 +87,7 @@ int device_probe(struct device_d *dev)
int ret;
pinctrl_select_state_default(dev);
+ of_clk_set_defaults(dev->device_node, false);
list_add(&dev->active, &active);