realtek: mdio: give bus a family independent name

There is no need to give the mdio bus a family dependent name.
Name the bus similar to the SerDes mdio bus.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21274
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2025-12-24 12:47:06 +01:00 committed by Robert Marko
parent b7f519ff3d
commit 87a3c62e32

View file

@ -1439,23 +1439,20 @@ static int rtmdio_probe(struct platform_device *pdev)
switch (family) {
case RTMDIO_838X_FAMILY_ID:
bus->name = "rtl838x-eth-mdio";
bus->reset = rtmdio_838x_reset;
break;
case RTMDIO_839X_FAMILY_ID:
bus->name = "rtl839x-eth-mdio";
bus->reset = rtmdio_839x_reset;
break;
case RTMDIO_930X_FAMILY_ID:
bus->name = "rtl930x-eth-mdio";
bus->reset = rtmdio_930x_reset;
break;
case RTMDIO_931X_FAMILY_ID:
bus->name = "rtl931x-eth-mdio";
bus->reset = rtmdio_931x_reset;
break;
}
bus->name = "Realtek MDIO bus";
bus->read = rtmdio_read;
bus->write = rtmdio_write;
bus->read_c45 = rtmdio_read_c45;