]> git.baikalelectronics.ru Git - 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)
commit5ae981f95cbec7e4d111a19f862b70f124807887
tree13c5975b49ad03a39183ce6109698fbd45eceaa6
parent133387e6303c092195a927fa3cf6af48a645a6fd
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