SPI: Register SPI1 as slave device
Krishna Yarlagadda [Mon, 21 Nov 2011 11:31:44 +0000 (16:31 +0530)]
Registering SPI1 as slave device which will be used in
loopback tests on E1198

Bug 903874

Reviewed-on: http://git-master/r/66790
(cherry picked from commit 87d7bc65a43dbb3a745c1bcb03e53ba44f8e80e9)

Change-Id: I22aeca2457dcb38125de48275e00c268fbe8792b
Reviewed-on: http://git-master/r/69189
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R62135f440f2480ee6cc181de84b670bc76ddcc37

arch/arm/mach-tegra/board-cardhu.c

index 34d67f3..df4f19a 100644 (file)
@@ -532,6 +532,8 @@ static void __init cardhu_spi_init(void)
        if (board_info.board_id == BOARD_E1198) {
                tegra_spi_device2.dev.platform_data = &cardhu_spi_pdata;
                platform_device_register(&tegra_spi_device2);
+               tegra_spi_slave_device1.dev.platform_data = &cardhu_spi_pdata;
+               platform_device_register(&tegra_spi_slave_device1);
        }
 }