driver core: bus: clean up driver_find()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 11:13:24 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 09:43:33 +0000 (10:43 +0100)
commitfb451966ae7d7e6d6802de39bda5fa2f15781244
tree31cf22cfe487741b7c7d35814102e26daaa86160
parentadc18506941dcafe216aba80766ab51c890358e8
driver core: bus: clean up driver_find()

Convert the driver_find() function to use bus_to_subsys() and not use
the back-pointer to the private structure.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-16-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c