net: phy: Test previous phydev->dev against new mac dev
authorBin Meng <bmeng.cn@gmail.com>
Thu, 8 Oct 2015 04:19:31 +0000 (21:19 -0700)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:49 +0000 (14:05 -0500)
commit17ecfa9b45db7964f6a20cd710a87decd2f2e1f5
treef65b5219be35890f28489b061da9ed4b18117cfd
parent3e1949d77463b062a4f8d380128abb7854f4907b
net: phy: Test previous phydev->dev against new mac dev

In phy_connect_dev(), if the phy device has an accociated mac device
before, a warning message will be printed. But we should test the
old device against the new one, if they are actually the same one,
don't print the warning message.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c