]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: fsl-mc: Convert to bus callbacks
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 2 Dec 2025 14:09:20 +0000 (15:09 +0100)
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Sun, 14 Dec 2025 09:22:19 +0000 (10:22 +0100)
commitc8dff80a3108a2cb85ac7ac5b1a75c247ac55fd2
treebe533ac03089e6834822657587f13e46c3b1d128
parentf4aff53c90e48360c91b6d902b935ecbaccb0b62
bus: fsl-mc: Convert to bus callbacks

With the eventual goal to drop .probe(), .remove() and .shutdown() from
struct device_driver, convert the fsl bus to use bus methods.

Other than a driver's shutdown callback the bus shutdown callback is
also called for unbound drivers. So check for the device being bound
before following the pointer to its driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/848fffe5c479d899c04a4c99ccb5f0128ccc942d.1764684327.git.u.kleine-koenig@baylibre.com
Link: https://lore.kernel.org/r/20251209115950.3382308-2-u.kleine-koenig@baylibre.com
[chleroy: squashed the two patches]
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
drivers/bus/fsl-mc/fsl-mc-bus.c