diff options
author | Simon Glass <sjg@chromium.org> | 2015-06-23 15:38:38 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:23 -0600 |
commit | 132f9bfc9ed0761fe349d2609918fa8a61e20692 (patch) | |
tree | 2c2156d94188ce7e7e0a13f8b8098db62179f44f /drivers | |
parent | 2693047acdcdae20b066715d0da4937814347935 (diff) | |
download | u-boot-imx-132f9bfc9ed0761fe349d2609918fa8a61e20692.zip u-boot-imx-132f9bfc9ed0761fe349d2609918fa8a61e20692.tar.gz u-boot-imx-132f9bfc9ed0761fe349d2609918fa8a61e20692.tar.bz2 |
dm: core: Correct device_get_child_by_of_offset() parameter
This parameter is named 'seq' but should be named 'of_offset'.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index 43aff54..456426a 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -459,14 +459,14 @@ int device_find_child_by_of_offset(struct udevice *parent, int of_offset, return -ENODEV; } -int device_get_child_by_of_offset(struct udevice *parent, int seq, +int device_get_child_by_of_offset(struct udevice *parent, int node, struct udevice **devp) { struct udevice *dev; int ret; *devp = NULL; - ret = device_find_child_by_of_offset(parent, seq, &dev); + ret = device_find_child_by_of_offset(parent, node, &dev); return device_get_device_tail(dev, ret, devp); } |