net: bgmac: fix reversed check for MII registration error
authorRafał Miłecki <rafal@milecki.pl>
Wed, 17 Aug 2016 13:37:14 +0000 (15:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:23:41 +0000 (23:23 -0700)
commitb9f63ae7ba2de2ba19137c5757c0607ce40f3ed5
tree32032a4538efc57fce4bd912d07dfafe6de9a805
parentbb1fceca22492109be12640d49f5ea5a544c6bb4
net: bgmac: fix reversed check for MII registration error

It was failing on successful registration returning meaningless errors.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Fixes: 55954f3bfdac ("net: ethernet: bgmac: move BCMA MDIO Phy code into a separate file")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-bcma.c