Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207977
b: refs/heads/master
c: 1dc9098
h: refs/heads/master
i:
  207975: 9e8bcfe
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 8886ecd commit 1191276
Show file tree
Hide file tree
Showing 4 changed files with 14 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: 26eca10e6ef64e15f250523a1e7e94ad40ac2bf8
refs/heads/master: 1dc90985d1b29275607ddac59555199e7894f633
13 changes: 10 additions & 3 deletions trunk/drivers/usb/gadget/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2990,9 +2990,9 @@ static struct usb_gadget_strings *fsg_strings_array[] = {
NULL,
};

static int fsg_add(struct usb_composite_dev *cdev,
struct usb_configuration *c,
struct fsg_common *common)
static int fsg_bind_config(struct usb_composite_dev *cdev,
struct usb_configuration *c,
struct fsg_common *common)
{
struct fsg_dev *fsg;
int rc;
Expand Down Expand Up @@ -3024,6 +3024,13 @@ static int fsg_add(struct usb_composite_dev *cdev,
return rc;
}

static inline int __deprecated __maybe_unused
fsg_add(struct usb_composite_dev *cdev,
struct usb_configuration *c,
struct fsg_common *common)
{
return fsg_bind_config(cdev, c, common);
}


/************************* Module parameters *************************/
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static int __init msg_do_config(struct usb_configuration *c)
if (IS_ERR(retp))
return PTR_ERR(retp);

ret = fsg_add(c->cdev, c, &common);
ret = fsg_bind_config(c->cdev, c, &common);
fsg_common_put(&common);
return ret;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int __init rndis_do_config(struct usb_configuration *c)
if (ret < 0)
return ret;

ret = fsg_add(c->cdev, c, fsg_common);
ret = fsg_bind_config(c->cdev, c, fsg_common);
if (ret < 0)
return ret;

Expand Down Expand Up @@ -208,7 +208,7 @@ static int __init cdc_do_config(struct usb_configuration *c)
if (ret < 0)
return ret;

ret = fsg_add(c->cdev, c, fsg_common);
ret = fsg_bind_config(c->cdev, c, fsg_common);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 1191276

Please sign in to comment.