summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/r8a66597-udc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
-rw-r--r--drivers/usb/gadget/r8a66597-udc.h7
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 @@
#ifndef __R8A66597_H__
#define __R8A66597_H__
+#ifdef CONFIG_HAVE_CLK
+#include <linux/clk.h>
+#endif
+
#include <linux/usb/r8a66597.h>
#define R8A66597_MAX_SAMPLING 10
@@ -88,6 +92,9 @@ struct r8a66597 {
spinlock_t lock;
unsigned long reg;
+#ifdef CONFIG_HAVE_CLK
+ struct clk *clk;
+#endif
struct r8a66597_platdata *pdata;
struct usb_gadget gadget;
OpenPOWER on IntegriCloud