usb: musb: fix build breakage
commit 0662481855
(usb: musb: disable double buffering when it's broken),
introduced a compile error when gadget API is disabled.
Fix it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Родитель
85e2efbb1d
Коммит
5990378b39
|
@ -488,6 +488,15 @@ struct musb {
|
||||||
unsigned set_address:1;
|
unsigned set_address:1;
|
||||||
unsigned test_mode:1;
|
unsigned test_mode:1;
|
||||||
unsigned softconnect:1;
|
unsigned softconnect:1;
|
||||||
|
|
||||||
|
u8 address;
|
||||||
|
u8 test_mode_nr;
|
||||||
|
u16 ackpend; /* ep0 */
|
||||||
|
enum musb_g_ep0_state ep0_state;
|
||||||
|
struct usb_gadget g; /* the gadget */
|
||||||
|
struct usb_gadget_driver *gadget_driver; /* its driver */
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: Remove this flag.
|
* FIXME: Remove this flag.
|
||||||
*
|
*
|
||||||
|
@ -501,14 +510,6 @@ struct musb {
|
||||||
*/
|
*/
|
||||||
unsigned double_buffer_not_ok:1 __deprecated;
|
unsigned double_buffer_not_ok:1 __deprecated;
|
||||||
|
|
||||||
u8 address;
|
|
||||||
u8 test_mode_nr;
|
|
||||||
u16 ackpend; /* ep0 */
|
|
||||||
enum musb_g_ep0_state ep0_state;
|
|
||||||
struct usb_gadget g; /* the gadget */
|
|
||||||
struct usb_gadget_driver *gadget_driver; /* its driver */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct musb_hdrc_config *config;
|
struct musb_hdrc_config *config;
|
||||||
|
|
||||||
#ifdef MUSB_CONFIG_PROC_FS
|
#ifdef MUSB_CONFIG_PROC_FS
|
||||||
|
|
Загрузка…
Ссылка в новой задаче