aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-16 21:10:53 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-10-09 13:52:07 -0700
commitb20cf90650badaa5e6ec1bdbe61a63528818e8ce (patch)
tree3da2e35b0e30b18b043cae524d9c1245c8fcb8f3 /drivers/usb/musb/musb_core.h
parent0a023c6cf10c63d2ce68a2816d90c2f0f1ad2763 (diff)
downloadkernel_samsung_smdk4412-b20cf90650badaa5e6ec1bdbe61a63528818e8ce.zip
kernel_samsung_smdk4412-b20cf90650badaa5e6ec1bdbe61a63528818e8ce.tar.gz
kernel_samsung_smdk4412-b20cf90650badaa5e6ec1bdbe61a63528818e8ce.tar.bz2
USB: musb: make HAVE_CLK support optional
The Blackfin port doesn't support HAVE_CLK and the musb driver works fine with support stubbed out, so take the existing Blackfin clk stubs and move them to common musb code so we can drop the Kconfig dependency. Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_core.h')
-rw-r--r--drivers/usb/musb/musb_core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 381d648..6aa5f22 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -95,6 +95,13 @@ struct musb_ep;
#endif
#endif /* need MUSB gadget selection */
+#ifndef CONFIG_HAVE_CLK
+/* Dummy stub for clk framework */
+#define clk_get(dev, id) NULL
+#define clk_put(clock) do {} while (0)
+#define clk_enable(clock) do {} while (0)
+#define clk_disable(clock) do {} while (0)
+#endif
#ifdef CONFIG_PROC_FS
#include <linux/fs.h>