]> www.infradead.org Git - users/jedix/linux-maple.git/commit
stmmac: Remove pcim_* functions for driver detach
authorPhilipp Stanner <phasta@kernel.org>
Mon, 24 Mar 2025 09:29:29 +0000 (10:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 17:36:45 +0000 (10:36 -0700)
commitd327a12e636e902fd0c7178732813b041a1c9214
tree935994102fab25c5a16bd7c6803a593b328af49e
parent9db2426a324ea4aceea071b3069108840a3fa3fe
stmmac: Remove pcim_* functions for driver detach

Functions prefixed with "pcim_" are managed devres functions which
perform automatic cleanup once the driver unloads. It is, thus, not
necessary to call any cleanup functions in remove() callbacks.

Remove the pcim_ cleanup function calls in the remove() callbacks.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Tested-by: Henry Chen <chenx97@aosc.io>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250324092928.9482-5-phasta@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c