summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-08 16:41:06 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-08 16:41:06 +0100
commit65119fd57aeb0b52bfb30d19c052256f8fb08e6e (patch)
treed536b3343df0e11fa66f2db8f0e1ed5457eefebc /arch/arm
parent14547f064155f9d94e7799df2657372799ccc457 (diff)
colibri_t30: fix SPI
Our platform data erroneously used the forth (bus number 3) rather than the first (bus number 0) controller instance.
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-tegra/board-colibri_t30.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-colibri_t30.c b/arch/arm/mach-tegra/board-colibri_t30.c
index 471bad11fbf4..975e635faaa7 100644
--- a/arch/arm/mach-tegra/board-colibri_t30.c
+++ b/arch/arm/mach-tegra/board-colibri_t30.c
@@ -346,7 +346,7 @@ static struct platform_device tegra_rtc_device = {
#if defined(CONFIG_SPI_TEGRA) && defined(CONFIG_SPI_SPIDEV)
static struct spi_board_info tegra_spi_devices[] __initdata = {
{
- .bus_num = 3,
+ .bus_num = 0, /* SPI1 */
.chip_select = 0,
.irq = 0,
.max_speed_hz = 50000000,
@@ -366,7 +366,7 @@ static void __init colibri_t30_register_spidev(void)
#endif /* CONFIG_SPI_TEGRA && CONFIG_SPI_SPIDEV */
static struct platform_device *colibri_t30_spi_devices[] __initdata = {
- &tegra_spi_device4,
+ &tegra_spi_device1,
};
static struct spi_clk_parent spi_parent_clk[] = {
@@ -403,7 +403,7 @@ static void __init colibri_t30_spi_init(void)
}
colibri_t30_spi_pdata.parent_clk_list = spi_parent_clk;
colibri_t30_spi_pdata.parent_clk_count = ARRAY_SIZE(spi_parent_clk);
- tegra_spi_device4.dev.platform_data = &colibri_t30_spi_pdata;
+ tegra_spi_device1.dev.platform_data = &colibri_t30_spi_pdata;
platform_add_devices(colibri_t30_spi_devices,
ARRAY_SIZE(colibri_t30_spi_devices));
}