net: phy: mdio-bcm-unimac: create unique bus names
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 31 Jul 2017 19:04:23 +0000 (12:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:40:58 +0000 (14:40 -0700)
commitd782f7c935123ad99582af15c862bc7b0331d205
tree4d2e59ffff811595d387fea7a196b01912d9eee1
parent69a60b0579a4bf63871dfcfaca44a4e20c7d05f8
net: phy: mdio-bcm-unimac: create unique bus names

In preparation for having multiple GENET instances in a system (up to
3), make sure that we do include the bus instance number in the name of
the MDIO bus such that we change it from "unimac-mdio" to
"unimac-mdio-0" for instance.

So far, the only user of this driver is using Device Tree, which uses a
lookup/parenting based technique to map PHY devices to their respective
MDIO bus controllers, hence causing no additional changes.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-unimac.c