]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:12:30 +0000 (13:12 +0200)
commit69534ac30288f5e2d61c081efad27f136d4ee83f
tree1f029478b7a21b0df27a019861f5c0002bc9f83e
parent8cc70515536870ebcd9d81c54fc4d6451e4e6912
net: davinci_emac: match the mdio device against its compatible if possible

[ Upstream commit ea0820bb771175c7d4192fc6f5b5c56b3c6d5239 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ti/davinci_emac.c