driver core: Clarify which counterparts to use to device_add()
authorBorislav Petkov <bp@suse.de>
Thu, 18 Apr 2019 17:41:56 +0000 (19:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:34:54 +0000 (19:34 +0200)
commitaffada726cad2402804ec29fc000276c7dc23b95
tree56630f15d0ec8ae72767bb465102aa323b9eeb53
parent9abb24990a2bfa3d9dd35a6b3b93ff54d9cc7908
driver core: Clarify which counterparts to use to device_add()

It is not absolutely clear from the docs how the cleanup path after
device_add() should look like so spell it out explicitly.

No functional changes, just documentation.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c