diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-04-06 11:17:26 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-05-08 19:33:55 -0400 |
commit | 4574b886698dfad6209102fed6136622b5fe1c21 (patch) | |
tree | 2f1deee540c68261f4531d09337a19a130a7ea45 /arch/arm/mach-dove | |
parent | 2f129bf4aab684bef1e82e747b709a5025ecb698 (diff) |
ARM: Orion: SPI: Add clk/clkdev support.
Remove now redundant tclk from SPI platform data. This makes the platform
data empty, so remove it.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-dove')
-rw-r--r-- | arch/arm/mach-dove/common.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-dove/dove-db-setup.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 63fe6e612e98..da5b4047464d 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -76,6 +76,8 @@ static void __init clk_init(void) | |||
76 | { | 76 | { |
77 | tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT, | 77 | tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT, |
78 | get_tclk()); | 78 | get_tclk()); |
79 | |||
80 | orion_clkdev_init(tclk); | ||
79 | } | 81 | } |
80 | 82 | ||
81 | /***************************************************************************** | 83 | /***************************************************************************** |
@@ -162,12 +164,12 @@ void __init dove_uart3_init(void) | |||
162 | ****************************************************************************/ | 164 | ****************************************************************************/ |
163 | void __init dove_spi0_init(void) | 165 | void __init dove_spi0_init(void) |
164 | { | 166 | { |
165 | orion_spi_init(DOVE_SPI0_PHYS_BASE, get_tclk()); | 167 | orion_spi_init(DOVE_SPI0_PHYS_BASE); |
166 | } | 168 | } |
167 | 169 | ||
168 | void __init dove_spi1_init(void) | 170 | void __init dove_spi1_init(void) |
169 | { | 171 | { |
170 | orion_spi_1_init(DOVE_SPI1_PHYS_BASE, get_tclk()); | 172 | orion_spi_1_init(DOVE_SPI1_PHYS_BASE); |
171 | } | 173 | } |
172 | 174 | ||
173 | /***************************************************************************** | 175 | /***************************************************************************** |
diff --git a/arch/arm/mach-dove/dove-db-setup.c b/arch/arm/mach-dove/dove-db-setup.c index ea77ae430b2d..bc2867f11346 100644 --- a/arch/arm/mach-dove/dove-db-setup.c +++ b/arch/arm/mach-dove/dove-db-setup.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
21 | #include <linux/pci.h> | 21 | #include <linux/pci.h> |
22 | #include <linux/spi/spi.h> | 22 | #include <linux/spi/spi.h> |
23 | #include <linux/spi/orion_spi.h> | ||
24 | #include <linux/spi/flash.h> | 23 | #include <linux/spi/flash.h> |
25 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
26 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |