[PATCH] firmware: ti_sci: Fix devm_ti_sci_get_resource() stub

Philipp Zabel p.zabel at pengutronix.de
Wed Mar 23 11:40:47 PDT 2022


Fix build errors when including linux/soc/ti/ti_sci_protocol.h with
CONFIG_TI_SCI_PROTOCOL disabled.

This allows to build the reset-ti-sci driver under CONFIG_COMPILE_TEST.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 include/linux/soc/ti/ti_sci_protocol.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h
index 0aad7009b50e..bd0d11af76c5 100644
--- a/include/linux/soc/ti/ti_sci_protocol.h
+++ b/include/linux/soc/ti/ti_sci_protocol.h
@@ -645,7 +645,7 @@ devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle,
 
 static inline struct ti_sci_resource *
 devm_ti_sci_get_resource(const struct ti_sci_handle *handle, struct device *dev,
-			 u32 dev_id, u32 sub_type);
+			 u32 dev_id, u32 sub_type)
 {
 	return ERR_PTR(-EINVAL);
 }
-- 
2.30.2




More information about the linux-arm-kernel mailing list