mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
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:
parent
b7f519ff3d
commit
87a3c62e32
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue