diff options
author | Viresh Kumar <viresh.linux@gmail.com> | 2012-07-30 17:39:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:12 -0400 |
commit | dd995c9d82b6eedb2e704daf44e903da0b7f6ac1 (patch) | |
tree | b822c91a54158a667379a90aff7f89bf645d9e3b /drivers/i2c | |
parent | 01da40bf8791434455d6e56c711eb224ddbf3161 (diff) |
i2c/i2c-pxa: 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.
pxa i2c 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: Wolfram Sang <w.sang@pengutronix.de>
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/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-pxa.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index a997c7d3f95d..1034d93fb838 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c | |||
@@ -41,13 +41,6 @@ | |||
41 | 41 | ||
42 | #include <asm/irq.h> | 42 | #include <asm/irq.h> |
43 | 43 | ||
44 | #ifndef CONFIG_HAVE_CLK | ||
45 | #define clk_get(dev, id) NULL | ||
46 | #define clk_put(clk) do { } while (0) | ||
47 | #define clk_disable(clk) do { } while (0) | ||
48 | #define clk_enable(clk) do { } while (0) | ||
49 | #endif | ||
50 | |||
51 | struct pxa_reg_layout { | 44 | struct pxa_reg_layout { |
52 | u32 ibmr; | 45 | u32 ibmr; |
53 | u32 idbr; | 46 | u32 idbr; |