Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219987
b: refs/heads/master
c: 9ebed60
h: refs/heads/master
i:
  219985: 46069bf
  219983: 97f6c50
v: v3
  • Loading branch information
David Cross authored and Greg Kroah-Hartman committed Sep 30, 2010
1 parent fc81a8c commit 2b2aa35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a06b1414a4d1850244827dc61382f44525151e92
refs/heads/master: 9ebed608bde8e27a1993f1b12eff16e04c8c419e
11 changes: 5 additions & 6 deletions trunk/drivers/staging/westbridge/astoria/gadget/cyasgadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1882,9 +1882,8 @@ static void cyas_ep0_start(
* disconnect is reported. then a host may connect again, or
* the driver might get unbound.
*/
int usb_gadget_register_driver(
struct usb_gadget_driver *driver
)
int usb_gadget_probe_driver(struct usb_gadget_driver *driver,
int (*bind)(struct usb_gadget *))
{
cyasgadget *dev = cy_as_gadget_controller ;
int retval;
Expand All @@ -1898,7 +1897,7 @@ int usb_gadget_register_driver(
* "must not be used in normal operation"
*/
if (!driver
|| !driver->bind
|| !bind
|| !driver->unbind
|| !driver->setup)
return -EINVAL;
Expand All @@ -1919,7 +1918,7 @@ int usb_gadget_register_driver(
cyas_usb_reset(dev) ; /* External usb */
cyas_usb_reinit(dev) ; /* Internal */

retval = driver->bind(&dev->gadget);
retval = bind(&dev->gadget);
if (retval) {
#ifndef WESTBRIDGE_NDEBUG
cy_as_hal_print_message("%s bind to driver %s --> %d\n",
Expand All @@ -1938,7 +1937,7 @@ int usb_gadget_register_driver(

return 0;
}
EXPORT_SYMBOL(usb_gadget_register_driver);
EXPORT_SYMBOL(usb_gadget_probe_driver);

static void cyasgadget_nuke(
cyasgadget_ep *an_ep
Expand Down

0 comments on commit 2b2aa35

Please sign in to comment.