summaryrefslogtreecommitdiff
path: root/include/dm/device.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 18:21:54 (GMT)
committerSimon Glass <sjg@chromium.org>2015-04-18 17:11:19 (GMT)
commit3479253dad2ac9d1c71f4843aae52ea7cd0c7716 (patch)
tree332ecc5cc4d545a14cc0097b44bc51d432001842 /include/dm/device.h
parent2c03c4633b092d695d04bd38053da4d7dc59a9a5 (diff)
downloadu-boot-fsl-qoriq-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 'include/dm/device.h')
-rw-r--r--include/dm/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index f27b34b..fafecce 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -70,7 +70,7 @@ struct driver_info;
* when the device is probed and will be unique within the device's uclass.
*/
struct udevice {
- struct driver *driver;
+ const struct driver *driver;
const char *name;
void *platdata;
void *parent_platdata;