summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2020-09-28 17:50:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 10:28:42 +0200
commit81ec6c1a882b0d8505eb7294e71f4b3fc6c9823b (patch)
treebab096b48d2a5dd50d980f67d34d4221c0918b58 /drivers
parent87ff009c11397e8520c5ecfb0f574b4263bbf211 (diff)
downloadbarebox-81ec6c1a882b0d8505eb7294e71f4b3fc6c9823b.tar.gz
barebox-81ec6c1a882b0d8505eb7294e71f4b3fc6c9823b.tar.xz
of: platform: fix of_amba_device_create stub return value
The stub should have the same function signature as the non-stub function. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/platform.c2
1 files changed, 1 insertions, 1 deletions
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;
}