]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ftgmac100: Make the MDIO bus a child of the ethernet device
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 24 Jul 2017 06:59:07 +0000 (16:59 +1000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 00:23:55 +0000 (17:23 -0700)
commitd57b9db1ae0cde366c9cc6b038cb1e8ff05557a1
tree13c5975b49ad03a39183ce6109698fbd45eceaa6
parentc7472ec4a00c298d2b55c0aa945b8a4c10f6f898
ftgmac100: Make the MDIO bus a child of the ethernet device

Populate mii_bus->parent with our own platform device before
registering, which makes it easier to locate the MDIO bus
in sysfs when trying to diagnose problems.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c