diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 12:21:54 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:19 -0600 |
commit | 3479253dad2ac9d1c71f4843aae52ea7cd0c7716 (patch) | |
tree | 332ecc5cc4d545a14cc0097b44bc51d432001842 /drivers/core/device.c | |
parent | 2c03c4633b092d695d04bd38053da4d7dc59a9a5 (diff) | |
download | u-boot-imx-3479253dad2ac9d1c71f4843aae52ea7cd0c7716.zip u-boot-imx-3479253dad2ac9d1c71f4843aae52ea7cd0c7716.tar.gz u-boot-imx-3479253dad2ac9d1c71f4843aae52ea7cd0c7716.tar.bz2 |
dm: core: Convert driver_bind() to use const
The driver is not modified by driver model, so update driver_bind() to
recognise that.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/core/device.c')
-rw-r--r-- | drivers/core/device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index 1ca5d1c..f1a03d9 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -24,8 +24,9 @@ DECLARE_GLOBAL_DATA_PTR; -int device_bind(struct udevice *parent, struct driver *drv, const char *name, - void *platdata, int of_offset, struct udevice **devp) +int device_bind(struct udevice *parent, const struct driver *drv, + const char *name, void *platdata, int of_offset, + struct udevice **devp) { struct udevice *dev; struct uclass *uc; @@ -181,7 +182,7 @@ static void *alloc_priv(int size, uint flags) int device_probe_child(struct udevice *dev, void *parent_priv) { - struct driver *drv; + const struct driver *drv; int size = 0; int ret; int seq; |