usb_ether: register usb ethernet gadget at each eth init
authorLei Wen <leiwen@marvell.com>
Wed, 1 Dec 2010 15:43:43 +0000 (23:43 +0800)
committerRemy Bohmer <linux@bohmer.net>
Wed, 19 Jan 2011 16:29:55 +0000 (17:29 +0100)
commit988ee3e3f024f4565f98584b9026df73c459c268
tree74c575243afc739f00c23f915a881a39ba8bb84d
parent3f1266d6d5bf14ea7248544db8406d308c6bfa7c
usb_ether: register usb ethernet gadget at each eth init

Since the ether may not be the only one usb gadget would be used
in the uboot, it is neccessary to do the register each time the
eth begin to work to make usb gadget driver less confussed when
we want to use two different usb gadget at the same time.

Usb gadget driver could simple ignore the register operation, if
it find the driver has been registered already.

Signed-off-by: Lei Wen <leiwen@marvell.com>
drivers/usb/gadget/ether.c