[net-next v2 0/9] net: convert to devm_clk_get_enabled() and devm_clk_get_optional_enabled()

Yangtao Li
2024-08-23T07:06:28Z

This patchset simplify code w/ devm_clk_get*_enabled() API.

v2:
-remove unused 'ret'
-fix incompatible-pointer-types
-get rid of amount of variables used

Yangtao Li (9):
net: stmmac: dwmac-intel-plat: Convert to devm_clk_get_enabled()
net: stmmac: platform: Convert to devm_clk_get_enabled() and
devm_clk_get_optional_enabled()
net: ethernet: cortina: Convert to devm_clk_get_enabled()
net: mdio: hisi-femac: Convert to devm_clk_get_enabled()
net: dsa: rzn1_a5psw: Convert to devm_clk_get_enabled()
net: ethernet: broadcom: bcm63xx_enet: Convert to
devm_clk_get_enabled()
net: ethernet: marvell: mvneta: Convert to devm_clk_get_enabled()
net: mvpp2: Convert to devm_clk_get_enabled() and
devm_clk_get_optional_enabled()
net: marvell: pxa168_eth: Convert to devm_clk_get_enabled()

drivers/net/dsa/rzn1_a5psw.c | 22 +----
drivers/net/ethernet/broadcom/bcm63xx_enet.c | 47 +++-------
drivers/net/ethernet/broadcom/bcm63xx_enet.h | 6 --
drivers/net/ethernet/cortina/gemini.c | 25 ++----
drivers/net/ethernet/marvell/mvneta_bm.c | 16 ++--
drivers/net/ethernet/marvell/mvneta_bm.h | 1 -
drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 7 --
.../net/ethernet/marvell/mvpp2/mvpp2_main.c | 89 +++++--------------
drivers/net/ethernet/marvell/pxa168_eth.c | 17 +---
.../stmicro/stmmac/dwmac-intel-plat.c | 11 +--
.../ethernet/stmicro/stmmac/stmmac_platform.c | 35 ++------
drivers/net/mdio/mdio-hisi-femac.c | 18 ++--
12 files changed, 73 insertions(+), 221 deletions(-)

--
2.39.0