[PATCH net-next 1/3] net: stmmac: pass struct device to init()/exit() methods
Chen-Yu Tsai
wens at csie.org
Wed Nov 19 06:43:18 PST 2025
On Wed, Nov 19, 2025 at 6:04 PM Russell King (Oracle)
<rmk+kernel at armlinux.org.uk> wrote:
>
> As struct plat_stmmacenet_data is not platform_device specific, pass
> a struct device into the init() and exit() methods to allow them to
> become independent of the underlying device.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
> ---
> .../ethernet/stmicro/stmmac/dwmac-anarion.c | 4 +--
> .../ethernet/stmicro/stmmac/dwmac-eic7700.c | 4 +--
> .../ethernet/stmicro/stmmac/dwmac-loongson1.c | 12 ++++----
> .../stmicro/stmmac/dwmac-renesas-gbeth.c | 4 +--
> .../net/ethernet/stmicro/stmmac/dwmac-s32.c | 14 +++++-----
> .../ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +-
> .../net/ethernet/stmicro/stmmac/dwmac-sti.c | 4 +--
> .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 10 +++----
> .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 4 +--
For sun8i / sunxi,
Acked-by: Chen-Yu Tsai <wens at kernel.org>
> .../net/ethernet/stmicro/stmmac/dwmac-thead.c | 2 +-
> .../ethernet/stmicro/stmmac/stmmac_platform.c | 28 ++++++++++---------
> include/linux/stmmac.h | 4 +--
> 12 files changed, 47 insertions(+), 45 deletions(-)
More information about the linux-riscv
mailing list