diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-12 15:00:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-13 11:55:54 +0100 |
commit | ecebdf1af7960483df7da90b4266aa177e117fc0 (patch) | |
tree | cf04fae49e62c70fb64a24051c3ae06ac3324587 /include | |
parent | 76543f189445daa5a1e64eebb9ab0f093a627ba6 (diff) | |
download | barebox-ecebdf1af7960483df7da90b4266aa177e117fc0.tar.gz barebox-ecebdf1af7960483df7da90b4266aa177e117fc0.tar.xz |
clk-conf.h: Add static inline wrapper for of_clk_set_defaults()
Will be needed once we call of_clk_set_defaults() from the driver core.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk/clk-conf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/clk/clk-conf.h b/include/linux/clk/clk-conf.h index ac6cfdf711..8da0f99d66 100644 --- a/include/linux/clk/clk-conf.h +++ b/include/linux/clk/clk-conf.h @@ -16,5 +16,13 @@ struct device_node; int of_clk_set_defaults(struct device_node *node, bool clk_supplier); +#else + +static inline int of_clk_set_defaults(struct device_node *node, + bool clk_supplier) +{ + return 0; +} + #endif #endif /* __CLK_CONF_H */ |