dm: Remove device_probe_child()
PATCH 1/1 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 <[email protected]>
---
drivers/core/device.c | 9 +-------- include/dm/device-internal.h | 13 ------------- 2 files changed, 1 insertion(+), 21 deletions(-)
drivers/core/device.c +1 -8
@@ -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) {
include/dm/device-internal.h +0 -13
@@ -66,19 +66,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 * * De-activate a device so that it is no longer ready for use. All its
Signature · 1 line
2.7.0.rc3.207.g0ac5344
PATCH 1/1 dm: Remove device_probe_child()
Quoted 4 lines · Simon Glass
This function is not used as the use case for it did not eventuate. Remove it to avoid confusion.
Signed-off-by Simon Glass <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/d88e2b77/attachment.sig>
PATCH 1/1 dm: Remove device_probe_child()
In reply to Simon GlassQuoted 10 lines · Simon Glass
This function is not used as the use case for it did not eventuate. Remove it to avoid confusion.
Signed-off-by Simon Glass <[email protected]>---
drivers/core/device.c | 9 +-------- include/dm/device-internal.h | 13 ------------- 2 files changed, 1 insertion(+), 21 deletions(-)
Reviewed-by Bin Meng <[email protected]>
PATCH 1/1 dm: Remove device_probe_child()
Quoted 7 lines · Bin Meng
Quoted 6 lines · Simon Glass
This function is not used as the use case for it did not eventuate. Remove it to avoid confusion.
Signed-off-by Simon Glass <[email protected]>---
Quoted 6 lines
Quoted 4 lines
drivers/core/device.c | 9 +-------- include/dm/device-internal.h | 13 ------------- 2 files changed, 1 insertion(+), 21 deletions(-)Reviewed-by Bin Meng <[email protected]>
Applied to u-boot-dm.