提交 e3ec0a8c 编写于 作者: H Hans de Goede 提交者: Philipp Zabel

reset: Add of_reset_control_get to reset.h

of_reset_control_get is not declared static in drivers/reset/core.c, which
is correct as we want to use it elsewhere too. But it does not have a
protype declared anywhere under include/linux. Add a prototype / stub for it
to linux/reset.h to fix this.
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 c9eaa447
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define _LINUX_RESET_H_ #define _LINUX_RESET_H_
struct device; struct device;
struct device_node;
struct reset_control; struct reset_control;
#ifdef CONFIG_RESET_CONTROLLER #ifdef CONFIG_RESET_CONTROLLER
...@@ -33,6 +34,9 @@ static inline struct reset_control *devm_reset_control_get_optional( ...@@ -33,6 +34,9 @@ static inline struct reset_control *devm_reset_control_get_optional(
return devm_reset_control_get(dev, id); return devm_reset_control_get(dev, id);
} }
struct reset_control *of_reset_control_get(struct device_node *node,
const char *id);
#else #else
static inline int reset_control_reset(struct reset_control *rstc) static inline int reset_control_reset(struct reset_control *rstc)
...@@ -75,6 +79,12 @@ static inline struct reset_control *devm_reset_control_get_optional( ...@@ -75,6 +79,12 @@ static inline struct reset_control *devm_reset_control_get_optional(
return ERR_PTR(-ENOSYS); return ERR_PTR(-ENOSYS);
} }
static inline struct reset_control *of_reset_control_get(
struct device_node *node, const char *id)
{
return ERR_PTR(-ENOSYS);
}
#endif /* CONFIG_RESET_CONTROLLER */ #endif /* CONFIG_RESET_CONTROLLER */
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册