usb: mv_udc: Clean up the initial variable check
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:33 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:31 +0000 (23:01 +0200)
commitd76630386d59d203ad4594d7e91be1f2e258ab93
tree44d3a3b8d371fe50c719feb539972e41dc472229
parentbe7ed2533d4acb9bc67989c4ffddb5814202ba02
usb: mv_udc: Clean up the initial variable check

Clean up the code that checks the validity of a USB gadget driver
in usb_gadget_register_driver(). Moreover, limit the speed of the
driver to either FULL or HIGH, this is more precise and once we
have xHCI support, also more correct.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Lei Wen <leiwen@marvell.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
drivers/usb/gadget/mv_udc.c