usb: gadget: dummy_hcd: use gadget_to_dummy_hcd() where possible
commit719e52cbc7b826fae9501f3b86b8cbc25a4c5268
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 16 Jun 2011 18:36:57 +0000 (16 20:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:31:07 +0000 (1 14:31 -0700)
treea34296697d8f9e26791663e919c88ab0e186240a
parent99fd14080e7f0a65b87830bf5062b09f6e80dd13
usb: gadget: dummy_hcd: use gadget_to_dummy_hcd() where possible

gadget_to_dummy_hcd() already does the speed check, so
it's unnecessary to unroll that all the time.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c