(4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registered
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jun 2008 11:10:27 +0000 (11:10 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jun 2008 11:10:27 +0000 (11:10 +0000)
commit40990382e5823fc3d6a50374cfb989615e143c14
tree99dfe44d2d4c35b2f542151d1da292f5f5c0a7f5
parent9621d872ca496eadb79399d0351abf96abc35338
(4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registered

This patch prevents switch-robo.c from attempting robo_probe on a port
that is already registered.  robo_probe will adjust kernel reference counts
if it detects a switch on the port.  If this patch wasn't applied, the
wrt350n would hang on reboot, waiting for the network driver reference count
to reach zero indefinitely.

Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu>
SVN-Revision: 11469
package/switch/src/switch-core.c
package/switch/src/switch-core.h
package/switch/src/switch-robo.c