summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-01-09 08:32:36 +0000
committerWolfgang Denk <wd@denx.de>2012-03-03 16:56:04 +0100
commite7e982d69c43b89f7e19b63479c8b2e880fbd75c (patch)
treed933f9627c7a94066118ad31d0b016c8556c1f1b /include/net.h
parente159e4868ec1c289a7c167da681165e74308c92a (diff)
downloadu-boot-imx-e7e982d69c43b89f7e19b63479c8b2e880fbd75c.zip
u-boot-imx-e7e982d69c43b89f7e19b63479c8b2e880fbd75c.tar.gz
u-boot-imx-e7e982d69c43b89f7e19b63479c8b2e880fbd75c.tar.bz2
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 <vpalatin@chromium.org> Tested-by: Wolfgang Grandegger <wg@denx.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index e4d42c2..1707a7f 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 */