of: phy: Only register a phy device for phys
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:17 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:26 +0000 (14:31 -0500)
commit801a8ef54e8b21eb6699aaa88681259dafb1d1b5
tree30f33b44467b9080d612a659900440a6c5301949
parente5a03bfd873c29eb786655ef2e95e53ed242b404
of: phy: Only register a phy device for phys

We will soon support devices other than phys on the mdio bus. Look at
a child's compatibility string to determine if it is a phy, before
registering a phy device.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c