summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/board-trimslice.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-07-10 23:37:22 +0200
committerColin Cross <ccross@android.com>2011-07-13 05:39:02 +0200
commit78702e43c1cadd600e35374411caba82ad9354b6 (patch)
tree3ec6156ccc3eb814e8b2e0d17d337557be91775e /arch/arm/mach-tegra/board-trimslice.c
parentARM: tegra: trimslice: enable USB ports (diff)
downloadlinux-78702e43c1cadd600e35374411caba82ad9354b6.tar.xz
linux-78702e43c1cadd600e35374411caba82ad9354b6.zip
ARM: tegra: remove copy-and-pasted i2c platform data in boards
Every board file includes the same platform data definition for the i2c-tegra driver's bus speed. Move the platform data into devices.c, and remove it from all the board files. Signed-off-by: Colin Cross <ccross@android.com> Tested-by: Konstantin Sinyuk <kostyas@compulab.co.il> Acked-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/board-trimslice.c')
-rw-r--r--arch/arm/mach-tegra/board-trimslice.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c
index a8fff429fb4a..e1d7e67ca85c 100644
--- a/arch/arm/mach-tegra/board-trimslice.c
+++ b/arch/arm/mach-tegra/board-trimslice.c
@@ -24,7 +24,6 @@
#include <linux/serial_8250.h>
#include <linux/io.h>
#include <linux/i2c.h>
-#include <linux/i2c-tegra.h>
#include <linux/platform_data/tegra_usb.h>
#include <linux/gpio.h>
@@ -92,18 +91,6 @@ static struct platform_device *trimslice_devices[] __initdata = {
&trimslice_audio_device,
};
-static struct tegra_i2c_platform_data trimslice_i2c1_platform_data = {
- .bus_clk_rate = 400000,
-};
-
-static struct tegra_i2c_platform_data trimslice_i2c2_platform_data = {
- .bus_clk_rate = 400000,
-};
-
-static struct tegra_i2c_platform_data trimslice_i2c3_platform_data = {
- .bus_clk_rate = 400000,
-};
-
static struct i2c_board_info trimslice_i2c3_board_info[] = {
{
I2C_BOARD_INFO("tlv320aic23", 0x1a),
@@ -115,10 +102,6 @@ static struct i2c_board_info trimslice_i2c3_board_info[] = {
static void trimslice_i2c_init(void)
{
- tegra_i2c_device1.dev.platform_data = &trimslice_i2c1_platform_data;
- tegra_i2c_device2.dev.platform_data = &trimslice_i2c2_platform_data;
- tegra_i2c_device3.dev.platform_data = &trimslice_i2c3_platform_data;
-
platform_device_register(&tegra_i2c_device1);
platform_device_register(&tegra_i2c_device2);
platform_device_register(&tegra_i2c_device3);