summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-25 14:58:42 -0700
committerSimon Glass <sjg@chromium.org>2016-01-28 21:01:23 -0700
commitc6db965f67c01c9ac6570eed690103f3ea30b3c4 (patch)
tree96f908d0db50a1122342f2407bc207901fdd66df /drivers
parente5bb279f826fb6967a554f6aaf6c8bf86b23cde2 (diff)
downloadu-boot-imx-c6db965f67c01c9ac6570eed690103f3ea30b3c4.zip
u-boot-imx-c6db965f67c01c9ac6570eed690103f3ea30b3c4.tar.gz
u-boot-imx-c6db965f67c01c9ac6570eed690103f3ea30b3c4.tar.bz2
dm: Remove device_probe_child()
This function is not used as the use case for it did not eventuate. Remove it to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/device.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c
index f5def35..cb24a61 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -223,7 +223,7 @@ static void *alloc_priv(int size, uint flags)
return priv;
}
-int device_probe_child(struct udevice *dev, void *parent_priv)
+int device_probe(struct udevice *dev)
{
const struct driver *drv;
int size = 0;
@@ -270,8 +270,6 @@ int device_probe_child(struct udevice *dev, void *parent_priv)
ret = -ENOMEM;
goto fail;
}
- if (parent_priv)
- memcpy(dev->parent_priv, parent_priv, size);
}
ret = device_probe(dev->parent);
@@ -349,11 +347,6 @@ fail:
return ret;
}
-int device_probe(struct udevice *dev)
-{
- return device_probe_child(dev, NULL);
-}
-
void *dev_get_platdata(struct udevice *dev)
{
if (!dev) {