From e7e982d69c43b89f7e19b63479c8b2e880fbd75c Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 9 Jan 2012 08:32:36 +0000 Subject: eth: remove usb-ethernet devices before re-enumerating them Fix the crash when running several times usb_init() with a USB ethernet device plugged. Signed-off-by: Vincent Palatin Tested-by: Wolfgang Grandegger --- include/net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/net.h b/include/net.h index e4d42c2a8b..1707a7fbec 100644 --- a/include/net.h +++ b/include/net.h @@ -96,6 +96,7 @@ struct eth_device { extern int eth_initialize(bd_t *bis); /* Initialize network subsystem */ extern int eth_register(struct eth_device* dev);/* Register network device */ +extern int eth_unregister(struct eth_device *dev);/* Remove network device */ extern void eth_try_another(int first_restart); /* Change the device */ extern void eth_set_current(void); /* set nterface to ethcur var */ extern struct eth_device *eth_get_dev(void); /* get the current device MAC */ -- cgit v1.2.1