summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-paz00.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-07-10 14:37:22 -0700
committerColin Cross <ccross@android.com>2011-07-12 20:39:02 -0700
commit78702e43c1cadd600e35374411caba82ad9354b6 (patch)
tree3ec6156ccc3eb814e8b2e0d17d337557be91775e /arch/arm/mach-tegra/board-paz00.c
parent4c755997ea1eb3e3c2df7ef657494d8188d0c120 (diff)
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-paz00.c')
-rw-r--r--arch/arm/mach-tegra/board-paz00.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c
index 1b076f6f23d1..465768eebacd 100644
--- a/arch/arm/mach-tegra/board-paz00.c
+++ b/arch/arm/mach-tegra/board-paz00.c
@@ -26,7 +26,6 @@
#include <linux/pda_power.h>
#include <linux/io.h>
#include <linux/i2c.h>
-#include <linux/i2c-tegra.h>
#include <linux/platform_data/tegra_usb.h>
#include <asm/mach-types.h>
@@ -74,24 +73,8 @@ static struct platform_device *paz00_devices[] __initdata = {
&tegra_sdhci_device4,
};
-static struct tegra_i2c_platform_data paz00_i2c1_platform_data = {
- .bus_clk_rate = 400000,
-};
-
-static struct tegra_i2c_platform_data paz00_i2c2_platform_data = {
- .bus_clk_rate = 400000,
-};
-
-static struct tegra_i2c_platform_data paz00_dvc_platform_data = {
- .bus_clk_rate = 400000,
-};
-
static void paz00_i2c_init(void)
{
- tegra_i2c_device1.dev.platform_data = &paz00_i2c1_platform_data;
- tegra_i2c_device2.dev.platform_data = &paz00_i2c2_platform_data;
- tegra_i2c_device4.dev.platform_data = &paz00_dvc_platform_data;
-
platform_device_register(&tegra_i2c_device1);
platform_device_register(&tegra_i2c_device2);
platform_device_register(&tegra_i2c_device4);