aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-05-15 07:32:46 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-05-16 15:09:07 -0400
commit980f9f601ad456dc5a699bf526b6bd894957bad3 (patch)
treef5e1bd57495bf3dabc17eadd4eda8a36d14637b9 /arch/arm/mach-kirkwood/common.c
parentaac7ffa3ed121846b61347028828617c5dd1ce46 (diff)
ARM: orion: Consolidate SPI initialization.
This change removes the interrupt resource. The driver does not use it. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r--arch/arm/mach-kirkwood/common.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index fc86a80ef565..af864fc7883b 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -15,7 +15,6 @@
15#include <linux/mbus.h> 15#include <linux/mbus.h>
16#include <linux/ata_platform.h> 16#include <linux/ata_platform.h>
17#include <linux/mtd/nand.h> 17#include <linux/mtd/nand.h>
18#include <linux/spi/orion_spi.h>
19#include <net/dsa.h> 18#include <net/dsa.h>
20#include <asm/page.h> 19#include <asm/page.h>
21#include <asm/timex.h> 20#include <asm/timex.h>
@@ -292,31 +291,10 @@ void __init kirkwood_sdio_init(struct mvsdio_platform_data *mvsdio_data)
292/***************************************************************************** 291/*****************************************************************************
293 * SPI 292 * SPI
294 ****************************************************************************/ 293 ****************************************************************************/
295static struct orion_spi_info kirkwood_spi_plat_data = {
296};
297
298static struct resource kirkwood_spi_resources[] = {
299 {
300 .start = SPI_PHYS_BASE,
301 .end = SPI_PHYS_BASE + SZ_512 - 1,
302 .flags = IORESOURCE_MEM,
303 },
304};
305
306static struct platform_device kirkwood_spi = {
307 .name = "orion_spi",
308 .id = 0,
309 .resource = kirkwood_spi_resources,
310 .dev = {
311 .platform_data = &kirkwood_spi_plat_data,
312 },
313 .num_resources = ARRAY_SIZE(kirkwood_spi_resources),
314};
315
316void __init kirkwood_spi_init() 294void __init kirkwood_spi_init()
317{ 295{
318 kirkwood_clk_ctrl |= CGC_RUNIT; 296 kirkwood_clk_ctrl |= CGC_RUNIT;
319 platform_device_register(&kirkwood_spi); 297 orion_spi_init(SPI_PHYS_BASE, kirkwood_tclk);
320} 298}
321 299
322 300
@@ -757,7 +735,6 @@ void __init kirkwood_init(void)
757{ 735{
758 printk(KERN_INFO "Kirkwood: %s, TCLK=%d.\n", 736 printk(KERN_INFO "Kirkwood: %s, TCLK=%d.\n",
759 kirkwood_id(), kirkwood_tclk); 737 kirkwood_id(), kirkwood_tclk);
760 kirkwood_spi_plat_data.tclk = kirkwood_tclk;
761 kirkwood_i2s_data.tclk = kirkwood_tclk; 738 kirkwood_i2s_data.tclk = kirkwood_tclk;
762 739
763 /* 740 /*