ibm/emac: fix improper cleanup when device is removed to allow re-bind
authorWolfgang Grandegger <wg@grandegger.com>
Thu, 17 Nov 2011 03:06:44 +0000 (03:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 22:04:57 +0000 (17:04 -0500)
commitd6f144830bdfa5fcf116e9ab8fc6a60d23fa623d
tree2d29fcd8a415f8ea5bc5de19018e66639815feff
parente11c259f745889b55bc5596ca78271f2f5cf08d2
ibm/emac: fix improper cleanup when device is removed to allow re-bind

The re-binding (unbind..bind) of an EMAC device fails because the
static variable "busy_phy_map" is not updated when the device is
removed.

Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/core.c