diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 21:21:54 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 20:11:19 +0300 |
commit | 3479253dad2ac9d1c71f4843aae52ea7cd0c7716 (patch) | |
tree | 332ecc5cc4d545a14cc0097b44bc51d432001842 /drivers/core/device-remove.c | |
parent | 2c03c4633b092d695d04bd38053da4d7dc59a9a5 (diff) | |
download | u-boot-3479253dad2ac9d1c71f4843aae52ea7cd0c7716.tar.xz |
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-remove.c')
-rw-r--r-- | drivers/core/device-remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index 3a5f48df7a..7fee1c001e 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -66,7 +66,7 @@ static int device_chld_remove(struct udevice *dev) int device_unbind(struct udevice *dev) { - struct driver *drv; + const struct driver *drv; int ret; if (!dev) @@ -139,7 +139,7 @@ void device_free(struct udevice *dev) int device_remove(struct udevice *dev) { - struct driver *drv; + const struct driver *drv; int ret; if (!dev) |