提交 e8cfb7e7 编写于 作者: J Johan Hovold 提交者: Michael Ellerman

powerpc/vio: Clarify vio_find_node() reference counting

Add comment clarifying that vio_find_node() takes a reference to the
embedded struct device which needs to be dropped after use.
Signed-off-by: NJohan Hovold <johan@kernel.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 815a7141
......@@ -1648,6 +1648,9 @@ static struct vio_dev *vio_find_name(const char *name)
/**
* vio_find_node - find an already-registered vio_dev
* @vnode: device_node of the virtual device we're looking for
*
* Takes a reference to the embedded struct device which needs to be dropped
* after use.
*/
struct vio_dev *vio_find_node(struct device_node *vnode)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册