]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: use device rather than platform device in rk_priv_data
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 16 Jun 2025 10:15:56 +0000 (11:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 22:30:14 +0000 (15:30 -0700)
commit8f6503993911f09b55ea8f4c6f55d6c555629cdf
tree4e027618fb81639d2ffc8b6381c26683b9c53540
parenta44769c97e9aa8e4d7783bcaf76f71c717b57381
net: stmmac: rk: use device rather than platform device in rk_priv_data

All the code in dwmac-rk uses &bsp_priv->pdev->dev, nothing uses
bsp_priv->pdev directly. Store the struct device rather than the
struct platform_device in struct rk_priv_data, and simplifying the
code.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1uR6se-004Ktz-Dx@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c