From 40990382e5823fc3d6a50374cfb989615e143c14 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 15 Jun 2008 11:10:27 +0000 Subject: (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 SVN-Revision: 11469 --- package/switch/src/switch-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'package/switch/src/switch-core.h') diff --git a/package/switch/src/switch-core.h b/package/switch/src/switch-core.h index 5a64efb..31c81f6 100644 --- a/package/switch/src/switch-core.h +++ b/package/switch/src/switch-core.h @@ -42,6 +42,7 @@ typedef struct { } switch_vlan_config; +extern int switch_device_registered (char* device); extern int switch_register_driver(switch_driver *driver); extern void switch_unregister_driver(char *name); extern switch_vlan_config *switch_parse_vlan(switch_driver *driver, char *buf); -- cgit v1.1