Skip to content
Snippets Groups Projects
Commit c6db965f authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent e5bb279f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -65,19 +65,6 @@ int device_bind_by_name(struct udevice *parent, bool pre_reloc_only,
*/
int device_probe(struct udevice *dev);
/**
* device_probe() - Probe a child device, activating it
*
* Activate a device so that it is ready for use. All its parents are probed
* first. The child is provided with parent data if parent_priv is not NULL.
*
* @dev: Pointer to device to probe
* @parent_priv: Pointer to parent data. If non-NULL then this is provided to
* the child.
* @return 0 if OK, -ve on error
*/
int device_probe_child(struct udevice *dev, void *parent_priv);
/**
* device_remove() - Remove a device, de-activating it
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment