* [PATCH v2] base/core.c: improve comment of the function device_find_child()
@ 2013-04-15 9:18 Federico Vaga
0 siblings, 0 replies; only message in thread
From: Federico Vaga @ 2013-04-15 9:18 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, Federico Vaga
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
---
drivers/base/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 016312437..3c8512f 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1372,6 +1372,8 @@ int device_for_each_child(struct device *parent, void *data,
* if it does. If the callback returns non-zero and a reference to the
* current device can be obtained, this function will return to the caller
* and not iterate over any more devices.
+ *
+ * NOTE: you will need to drop the reference with put_device() after use.
*/
struct device *device_find_child(struct device *parent, void *data,
int (*match)(struct device *dev, void *data))
--
1.8.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-15 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15 9:18 [PATCH v2] base/core.c: improve comment of the function device_find_child() Federico Vaga
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.