]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: move probe/remove calling of init/exit
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 19 Nov 2025 10:03:55 +0000 (10:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 01:54:07 +0000 (17:54 -0800)
commit32da89a840e852b1c33df2b8e5b74ba4da468b62
tree1450c7cc3a7789a92a1a879d0f79c875cb0c57c4
parent85081acc6b1188f2a6e5e605dc644225fcdf327f
net: stmmac: move probe/remove calling of init/exit

Move the probe/remove time calling of the init()/exit() methods in
the platform data to the main driver probe/remove functions. This
allows them to be used by non-platform_device based drivers.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vLf2Z-0000000FMNH-0xPV@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c