All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] dm: Remove device_probe_child()
@ 2016-01-25 21:58 Simon Glass
  2016-01-25 22:06 ` Tom Rini
  2016-01-26  1:15 ` Bin Meng
  0 siblings, 2 replies; 4+ messages in thread
From: Simon Glass @ 2016-01-25 21:58 UTC (permalink / raw)
  To: u-boot

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>
---

 drivers/core/device.c        |  9 +--------
 include/dm/device-internal.h | 13 -------------
 2 files changed, 1 insertion(+), 21 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) {
diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h
index 9388870..b348ad5 100644
--- a/include/dm/device-internal.h
+++ b/include/dm/device-internal.h
@@ -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
-- 
2.7.0.rc3.207.g0ac5344

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] dm: Remove device_probe_child()
  2016-01-25 21:58 [U-Boot] [PATCH] dm: Remove device_probe_child() Simon Glass
@ 2016-01-25 22:06 ` Tom Rini
  2016-01-26  1:15 ` Bin Meng
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2016-01-25 22:06 UTC (permalink / raw)
  To: u-boot

On Mon, Jan 25, 2016 at 02:58:42PM -0700, Simon Glass wrote:

> 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>

-- 
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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] dm: Remove device_probe_child()
  2016-01-25 21:58 [U-Boot] [PATCH] dm: Remove device_probe_child() Simon Glass
  2016-01-25 22:06 ` Tom Rini
@ 2016-01-26  1:15 ` Bin Meng
  2016-01-29  4:01   ` Simon Glass
  1 sibling, 1 reply; 4+ messages in thread
From: Bin Meng @ 2016-01-26  1:15 UTC (permalink / raw)
  To: u-boot

On Tue, Jan 26, 2016 at 5:58 AM, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
>  drivers/core/device.c        |  9 +--------
>  include/dm/device-internal.h | 13 -------------
>  2 files changed, 1 insertion(+), 21 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] dm: Remove device_probe_child()
  2016-01-26  1:15 ` Bin Meng
@ 2016-01-29  4:01   ` Simon Glass
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2016-01-29  4:01 UTC (permalink / raw)
  To: u-boot

On 25 January 2016 at 18:15, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Tue, Jan 26, 2016 at 5:58 AM, Simon Glass <sjg@chromium.org> wrote:
>> 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>
>> ---
>>
>>  drivers/core/device.c        |  9 +--------
>>  include/dm/device-internal.h | 13 -------------
>>  2 files changed, 1 insertion(+), 21 deletions(-)
>>
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot-dm.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-29  4:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-25 21:58 [U-Boot] [PATCH] dm: Remove device_probe_child() Simon Glass
2016-01-25 22:06 ` Tom Rini
2016-01-26  1:15 ` Bin Meng
2016-01-29  4:01   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.