|
@@ -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;
|
|
@@ -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 *************************/
|