Documentation/auxiliary_bus: Update Auxiliary device lifespan
authorIra Weiny <ira.weiny@intel.com>
Thu, 2 Dec 2021 04:43:01 +0000 (20:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 15:41:50 +0000 (16:41 +0100)
commitcb2ba75935558e65f2c4fe411a78c375b2c64cb4
tree47b29f6d5a70bf53ac735bef39ea98dffaaf90e2
parent0d058a206adadf0c38f891b19dbdcb2963a1cd20
Documentation/auxiliary_bus: Update Auxiliary device lifespan

It was unclear when the auxiliary device objects were to be free'ed by
the parent (registering) driver.

Also there are some patterns like using devm_add_action_or_reset() which
are helpful to mention to those using the interface to ensure they don't
double free or miss freeing the auxiliary devices.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20211202044305.4006853-4-ira.weiny@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/auxiliary_bus.rst