]> git.baikalelectronics.ru Git - kernel.git/commit
net: davinci_emac: match the mdio device against its compatible if possible
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 20 Jun 2018 08:03:56 +0000 (10:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jun 2018 01:23:48 +0000 (10:23 +0900)
commit17f5172998b70bfcd04f03754f856c5c8bab4fe4
treef8e3dff8120609d5546b21ed50db7fecfd0e556f
parent11401ed0e952c9095887c6cfafa5eb68d95cb0f3
net: davinci_emac: match the mdio device against its compatible if possible

Device tree based systems without of_dev_auxdata will have the mdio
device named differently than "davinci_mdio(.0)". In this case use the
device's parent's compatible string for matching

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c