From: Federico Vaga Date: Mon, 15 Apr 2013 09:18:11 +0000 (+0200) Subject: base/core.c: improve comment of the function device_find_child() X-Git-Tag: firefly_0821_release~176^2~5843^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a4e2400a63f0e4fb6af5083a24d80b6fa4c41ccd;p=firefly-linux-kernel-4.4.55.git base/core.c: improve comment of the function device_find_child() Signed-off-by: Federico Vaga Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/core.c b/drivers/base/core.c index 016312437577..3c8512f7b64c 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))