diff options
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
-rw-r--r-- | drivers/usb/gadget/r8a66597-udc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h index a2464bf337c8..7d9a325e7b6d 100644 --- a/drivers/usb/gadget/r8a66597-udc.h +++ b/drivers/usb/gadget/r8a66597-udc.h | |||
@@ -23,6 +23,10 @@ | |||
23 | #ifndef __R8A66597_H__ | 23 | #ifndef __R8A66597_H__ |
24 | #define __R8A66597_H__ | 24 | #define __R8A66597_H__ |
25 | 25 | ||
26 | #ifdef CONFIG_HAVE_CLK | ||
27 | #include <linux/clk.h> | ||
28 | #endif | ||
29 | |||
26 | #include <linux/usb/r8a66597.h> | 30 | #include <linux/usb/r8a66597.h> |
27 | 31 | ||
28 | #define R8A66597_MAX_SAMPLING 10 | 32 | #define R8A66597_MAX_SAMPLING 10 |
@@ -88,6 +92,9 @@ struct r8a66597 { | |||
88 | spinlock_t lock; | 92 | spinlock_t lock; |
89 | unsigned long reg; | 93 | unsigned long reg; |
90 | 94 | ||
95 | #ifdef CONFIG_HAVE_CLK | ||
96 | struct clk *clk; | ||
97 | #endif | ||
91 | struct r8a66597_platdata *pdata; | 98 | struct r8a66597_platdata *pdata; |
92 | 99 | ||
93 | struct usb_gadget gadget; | 100 | struct usb_gadget gadget; |