[PATCH 11/18] of: platform: fix of_amba_device_create stub return value

Marco Felsch m.felsch at pengutronix.de
Mon Sep 28 11:50:34 EDT 2020


The stub should have the same function signature as the non-stub
function.

Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
 drivers/of/platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index ca84cede23..21c7cce1a5 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -282,7 +282,7 @@ amba_err_free:
 	return NULL;
 }
 #else /* CONFIG_ARM_AMBA */
-static inline struct amba_device *of_amba_device_create(struct device_node *np)
+static inline struct device_d *of_amba_device_create(struct device_node *np)
 {
 	return NULL;
 }
-- 
2.20.1




More information about the barebox mailing list