diff options
author | Denis Orlov <denorl2009@gmail.com> | 2022-10-31 10:34:29 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-02 08:35:15 +0100 |
commit | 934ff9eccb0f64261f6711b8a14764727b550564 (patch) | |
tree | 1edd008a0469d3fc09a236ed023e7a0b9d7bcfcd | |
parent | 72ad6ee14976e7cf960fcbdb28323b8f9c4772f5 (diff) | |
download | barebox-934ff9eccb0f64261f6711b8a14764727b550564.tar.gz |
reset: add missing stub for of_reset_control_get()
Every other function in reset.h has a corresponding stub that is used
when the option RESET_CONTROLLER is disabled in config. This allows for
code that uses this function to still be compilable even when the reset
controller subsystem is disabled.
Signed-off-by: Denis Orlov <denorl2009@gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221031073429.1656245-1-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/linux/reset.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h index c1282a84c7..2d788547f4 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -49,6 +49,12 @@ static inline int reset_control_deassert(struct reset_control *rstc) } static inline struct reset_control * +of_reset_control_get(struct device_node *node, const char *id) +{ + return NULL; +} + +static inline struct reset_control * reset_control_get(struct device_d *dev, const char *id) { return NULL; |