Documentation/auxiliary_bus: Clarify the release of devices from find device
authorIra Weiny <ira.weiny@intel.com>
Thu, 2 Dec 2021 04:43:04 +0000 (20:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 15:41:50 +0000 (16:41 +0100)
commit8a2d6ffe7740cb8c944968aa9b0705e20afeef87
tree8ba37b1838939fa93ae14e31cc293d719bb9eb60
parent14866a7db8da1f61fb6135c461b733694eea9580
Documentation/auxiliary_bus: Clarify the release of devices from find device

auxiliary_find_device() takes a proper get_device() reference on the
device before returning the matched device.

Users of this call should be informed that they need to properly release
this reference with put_device().

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20211202044305.4006853-7-ira.weiny@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/auxiliary.c