net: sh_eth: Switch back to mdio_alloc()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 2 Mar 2025 01:24:49 +0000 (02:24 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 11 Mar 2025 22:05:57 +0000 (23:05 +0100)
commitf6fba8385745b560678c02997d8fe448c1679ca5
treed0aa91eb3b9440cb311b8d5c9cc90d2204ec40c3
parent877e29cfb1a72d929e79a66281228010d330c7f5
net: sh_eth: Switch back to mdio_alloc()

Use mdio_alloc() again to allocate MDIO bus. This is possible
because all the miiphybb parameters and ops passing is handled in
at bb_miiphy_read()/bb_miiphy_write() level.

This also fixes previously missed bb_miiphy_free() in .remove
callback of this driver. which does not pose a problem anymore.

Fixes: 08eefb5e792d ("net: sh_eth: Allocate bb_miiphy using bb_miiphy_alloc() and fill in callbacks")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
drivers/net/sh_eth.c