diff options
-rw-r--r-- | drivers/usb/musb/Kconfig | 2 | ||||
-rw-r--r-- | drivers/usb/musb/blackfin.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.h | 7 | ||||
-rw-r--r-- | drivers/usb/musb/musb_regs.h | 9 |
4 files changed, 8 insertions, 11 deletions
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 803adcb5ac1d..760e7271d17b 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig | |||
@@ -8,7 +8,7 @@ comment "Enable Host or Gadget support to see Inventra options" | |||
8 | 8 | ||
9 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller | 9 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller |
10 | config USB_MUSB_HDRC | 10 | config USB_MUSB_HDRC |
11 | depends on (USB || USB_GADGET) && HAVE_CLK | 11 | depends on (USB || USB_GADGET) |
12 | depends on !SUPERH | 12 | depends on !SUPERH |
13 | select NOP_USB_XCEIV if ARCH_DAVINCI | 13 | select NOP_USB_XCEIV if ARCH_DAVINCI |
14 | select TWL4030_USB if MACH_OMAP_3430SDP | 14 | select TWL4030_USB if MACH_OMAP_3430SDP |
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index f2f66ebc7362..fcec87ea709e 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/slab.h> | 14 | #include <linux/slab.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/clk.h> | ||
18 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
19 | #include <linux/io.h> | 18 | #include <linux/io.h> |
20 | 19 | ||
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 381d648a36b8..6aa5f22e5274 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -95,6 +95,13 @@ struct musb_ep; | |||
95 | #endif | 95 | #endif |
96 | #endif /* need MUSB gadget selection */ | 96 | #endif /* need MUSB gadget selection */ |
97 | 97 | ||
98 | #ifndef CONFIG_HAVE_CLK | ||
99 | /* Dummy stub for clk framework */ | ||
100 | #define clk_get(dev, id) NULL | ||
101 | #define clk_put(clock) do {} while (0) | ||
102 | #define clk_enable(clock) do {} while (0) | ||
103 | #define clk_disable(clock) do {} while (0) | ||
104 | #endif | ||
98 | 105 | ||
99 | #ifdef CONFIG_PROC_FS | 106 | #ifdef CONFIG_PROC_FS |
100 | #include <linux/fs.h> | 107 | #include <linux/fs.h> |
diff --git a/drivers/usb/musb/musb_regs.h b/drivers/usb/musb/musb_regs.h index fbfd3fd9ce1f..cc1d71b57d3c 100644 --- a/drivers/usb/musb/musb_regs.h +++ b/drivers/usb/musb/musb_regs.h | |||
@@ -439,15 +439,6 @@ static inline void musb_write_txhubport(void __iomem *mbase, u8 epnum, | |||
439 | /* Not implemented - HW has seperate Tx/Rx FIFO */ | 439 | /* Not implemented - HW has seperate Tx/Rx FIFO */ |
440 | #define MUSB_TXCSR_MODE 0x0000 | 440 | #define MUSB_TXCSR_MODE 0x0000 |
441 | 441 | ||
442 | /* | ||
443 | * Dummy stub for clk framework, it will be removed | ||
444 | * until Blackfin supports clk framework | ||
445 | */ | ||
446 | #define clk_get(dev, id) NULL | ||
447 | #define clk_put(clock) do {} while (0) | ||
448 | #define clk_enable(clock) do {} while (0) | ||
449 | #define clk_disable(clock) do {} while (0) | ||
450 | |||
451 | static inline void musb_write_txfifosz(void __iomem *mbase, u8 c_size) | 442 | static inline void musb_write_txfifosz(void __iomem *mbase, u8 c_size) |
452 | { | 443 | { |
453 | } | 444 | } |