# \[PATCH 0/3\] net: phy: micrel: Code clean-up

- From: Christophe JAILLET \<hidden\>
- Date: 2026-05-15 14:51:56 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/05/9010164
- Thread: https://ratatoskr.run/netdev/2026/05/9010164/t.md

```text
This serie is only some clean-up related to
drivers/net/mdio/mdio-mscc-miim.c

It depends on a patch called "[PATCH net-next] net: phy: micrel: use dev_err_probe()"
that has been sent recently.

Note that in the 2nd patch, the order of the calls in the remove
function is changed. I don't think that it matters, but I'm always
relunctent to change such things.

The patches are compile tested only.

Christophe JAILLET (3):
  net: mdio: mscc-miim: Remove some redundant code
  net: mdio: mscc-miim: Use devm_clk_get_optional_enabled()
  net: mdio: mscc-miim: Use devm_of_mdiobus_register()

 drivers/net/mdio/mdio-mscc-miim.c | 34 +++++--------------------------
 1 file changed, 5 insertions(+), 29 deletions(-)

-- 
2.54.0

```
