From 934ff9eccb0f64261f6711b8a14764727b550564 Mon Sep 17 00:00:00 2001 From: Denis Orlov Date: Mon, 31 Oct 2022 10:34:29 +0300 Subject: 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 Reviewed-by: Ahmad Fatoum Link: https://lore.barebox.org/20221031073429.1656245-1-denorl2009@gmail.com Signed-off-by: Sascha Hauer --- include/linux/reset.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ -48,6 +48,12 @@ static inline int reset_control_deassert(struct reset_control *rstc) return 0; } +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) { -- cgit v1.2.1