summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-07-24 21:00:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-08 16:22:06 +0200
commit8a2e1d28af89818d5c24bd89f5366aa0bf7ff784 (patch)
tree6b47b1295202dfa25010c1ef23454343ab05b514 /drivers/base
parent1da26bfb9da2d0d0054169b15d90e9a2c85ae902 (diff)
downloadbarebox-8a2e1d28af89818d5c24bd89f5366aa0bf7ff784.tar.gz
barebox-8a2e1d28af89818d5c24bd89f5366aa0bf7ff784.tar.xz
mfd: implement mfd_add_devices
This makes it easier to port Linux drivers like PMICs, where a device tree probed MFD node exists and the driver matching against it then registers a number of MFD cell devices, which don't have their own DT compatibles. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220724190006.2160802-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/resource.c b/drivers/base/resource.c
index d0d3962077..0134456ffa 100644
--- a/drivers/base/resource.c
+++ b/drivers/base/resource.c
@@ -20,7 +20,7 @@ struct device_d *device_alloc(const char *devname, int id)
return dev;
}
-int device_add_data(struct device_d *dev, void *data, size_t size)
+int device_add_data(struct device_d *dev, const void *data, size_t size)
{
free(dev->platform_data);