tg3: negate USE_PHYLIB flag check
authorJiri Pirko <jpirko@redhat.com>
Tue, 11 Oct 2011 23:00:41 +0000 (23:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 03:59:33 +0000 (23:59 -0400)
USE_PHYLIB flag in tg3_remove_one() is being checked incorrectly. This
results tg3_phy_fini->phy_disconnect is never called and when tg3 module
is removed.

In my case this resulted in panics in phy_state_machine calling function
phydev->adjust_link.

So correct this check.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found