summaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-core.h
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-06-15 11:10:27 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-06-15 11:10:27 +0000
commitc848213af99e1bd4242e3ab619f51ee464a44a10 (patch)
treee9ffa5ddb51761909cb903da543229dc05407612 /package/switch/src/switch-core.h
parentf8338897616e0fe6e7213778fd1ef3d064afb77e (diff)
(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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11469 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-core.h')
-rw-r--r--package/switch/src/switch-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/switch/src/switch-core.h b/package/switch/src/switch-core.h
index 5a64efb75..31c81f6ed 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);