Skip to content

Commit

Permalink
MX1ADS: remove I2C ifdefs
Browse files Browse the repository at this point in the history
Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
  • Loading branch information
Darius Augulis authored and Sascha Hauer committed Apr 16, 2009
1 parent 248ca85 commit 3fa6dd6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/arm/mach-mx1/mx1ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <mach/common.h>
#include <mach/imx-uart.h>
#include <mach/irqs.h>
#ifdef CONFIG_I2C_IMX
#include <mach/i2c.h>
#endif
#include <mach/iomux.h>
#include "devices.h"

Expand Down Expand Up @@ -114,7 +112,6 @@ static struct platform_device flash_device = {
* I2C
*/

#ifdef CONFIG_I2C_IMX
static int i2c_pins[] = {
PA15_PF_I2C_SDA,
PA16_PF_I2C_SCL,
Expand Down Expand Up @@ -157,7 +154,6 @@ static struct i2c_board_info mx1ads_i2c_devices[] = {
.platform_data = &pcf857x_data[1],
},
};
#endif

/*
* Board init
Expand All @@ -172,12 +168,10 @@ static void __init mx1ads_init(void)
mxc_register_device(&flash_device, &mx1ads_flash_data);

/* I2C */
#ifdef CONFIG_I2C_IMX
i2c_register_board_info(0, mx1ads_i2c_devices,
ARRAY_SIZE(mx1ads_i2c_devices));

mxc_register_device(&imx_i2c_device, &mx1ads_i2c_data);
#endif
}

static void __init mx1ads_timer_init(void)
Expand Down

0 comments on commit 3fa6dd6

Please sign in to comment.