]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mvgbe: Fix build error with CONFIG_PHYLIB
authorChris Packham <judge.packham@gmail.com>
Mon, 31 Oct 2016 21:48:32 +0000 (10:48 +1300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 7 Nov 2016 17:28:16 +0000 (11:28 -0600)
commit6ecf9e21b5ecd5ddfe9100cb1023ca244fe63ceb
tree14db6dff7fd0ed90a0c8651e1d1510d18c49bd9e
parentf018545ef756c4bc567d1bbf153615833bc590b0
net: mvgbe: Fix build error with CONFIG_PHYLIB

Commit 5a49f17481bb ("net: mii: Use spatch to update miiphy_register")
updated the mvgbe implementation of smi_reg_read/smi_reg_write. Prior to
that change mvgbe_phy_read and mvgbe_phy_write where used as wrappers to
satisfy the phylib APIs. Because these functions weren't updated in that
commit build errors where triggered when CONFIG_PHYLIB was enabled.

Fix these build errors by removing mvgbe_phy_read and mvgbe_phy_write
and using smi_reg_read/smi_reg_write directly.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvgbe.c