|
@@ -293,6 +293,7 @@
|
|
|
|
|
|
#include <linux/usb/ch9.h>
|
|
#include <linux/usb/ch9.h>
|
|
#include <linux/usb/gadget.h>
|
|
#include <linux/usb/gadget.h>
|
|
|
|
+#include <linux/usb/composite.h>
|
|
|
|
|
|
#include "gadget_chips.h"
|
|
#include "gadget_chips.h"
|
|
|
|
|
|
@@ -2763,7 +2764,7 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common,
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
common->free_storage_on_release = 1;
|
|
common->free_storage_on_release = 1;
|
|
} else {
|
|
} else {
|
|
- memset(common, 0, sizeof common);
|
|
|
|
|
|
+ memset(common, 0, sizeof *common);
|
|
common->free_storage_on_release = 0;
|
|
common->free_storage_on_release = 0;
|
|
}
|
|
}
|
|
|
|
|