summaryrefslogtreecommitdiffstats
path: root/drivers/core
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:21:55 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:19 -0600
commit39de843352d8c655f23ecff460d5e74101780b7e (patch)
tree31367f9062640e9c95fab992dfdd88dd0e2fe6af /drivers/core
parent3479253dad2ac9d1c71f4843aae52ea7cd0c7716 (diff)
downloadtalos-obmc-uboot-39de843352d8c655f23ecff460d5e74101780b7e.tar.gz
talos-obmc-uboot-39de843352d8c655f23ecff460d5e74101780b7e.zip
dm: core: Rename driver data function to dev_get_driver_data()
The existing get_get_of_data() function provides access to both the driver's compatible string and its driver data. However only the latter is actually useful. Update the interface to reflect this and fix up existing users. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/device.c4
-rw-r--r--drivers/core/lists.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c
index f1a03d92b7..4fba11857c 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -467,9 +467,9 @@ struct udevice *dev_get_parent(struct udevice *child)
return child->parent;
}
-ulong dev_get_of_data(struct udevice *dev)
+ulong dev_get_driver_data(struct udevice *dev)
{
- return dev->of_id->data;
+ return dev->driver_data;
}
enum uclass_id device_get_uclass_id(struct udevice *dev)
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index ff115c4723..647e390bfe 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -168,7 +168,7 @@ int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
dm_warn("Error binding driver '%s'\n", entry->name);
return ret;
} else {
- dev->of_id = id;
+ dev->driver_data = id->data;
found = true;
if (devp)
*devp = dev;
OpenPOWER on IntegriCloud