diff options
author | Viresh Kumar <viresh.linux@gmail.com> | 2012-07-30 17:39:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:12 -0400 |
commit | 08aff5358207ee80e4fe162845c17ea125295eec (patch) | |
tree | 86b1f5c2f981e522b844749b97a2482f4b3d98f6 /drivers/usb/musb | |
parent | 714904e1c3f48b17ceff06b827485f8b1b5d8a91 (diff) |
usb/musb: remove conditional compilation of clk code
With addition of dummy clk_*() calls for non CONFIG_HAVE_CLK cases in
clk.h, there is no need to have clk code enclosed in #ifdef
CONFIG_HAVE_CLK, #endif macros.
musb also has these dummy macros defined locally. Remove them as they
aren't required anymore.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: viresh kumar <viresh.linux@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_core.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index dbcdeea30f09..586105b55a7c 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -81,14 +81,6 @@ struct musb_ep; | |||
81 | #define is_peripheral_active(m) (!(m)->is_host) | 81 | #define is_peripheral_active(m) (!(m)->is_host) |
82 | #define is_host_active(m) ((m)->is_host) | 82 | #define is_host_active(m) ((m)->is_host) |
83 | 83 | ||
84 | #ifndef CONFIG_HAVE_CLK | ||
85 | /* Dummy stub for clk framework */ | ||
86 | #define clk_get(dev, id) NULL | ||
87 | #define clk_put(clock) do {} while (0) | ||
88 | #define clk_enable(clock) do {} while (0) | ||
89 | #define clk_disable(clock) do {} while (0) | ||
90 | #endif | ||
91 | |||
92 | #ifdef CONFIG_PROC_FS | 84 | #ifdef CONFIG_PROC_FS |
93 | #include <linux/fs.h> | 85 | #include <linux/fs.h> |
94 | #define MUSB_CONFIG_PROC_FS | 86 | #define MUSB_CONFIG_PROC_FS |