diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-14 05:23:44 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-27 06:51:24 -0500 |
commit | 5ec561afbc44dc8dfe789deafa5bf47da463938a (patch) | |
tree | 6a983a163ef731d49ecab55b13951cb7f7ed0d43 | |
parent | 9f43e44be8787ddc01652dfc4331b34ae1475426 (diff) |
ARM i.MX27 pca100: remove unnecessary CONFIG_SPI_IMX ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index cccc0a0a9c72..faa4e04006e0 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -187,7 +187,6 @@ static struct i2c_board_info pca100_i2c_devices[] = { | |||
187 | } | 187 | } |
188 | }; | 188 | }; |
189 | 189 | ||
190 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
191 | static struct spi_eeprom at25320 = { | 190 | static struct spi_eeprom at25320 = { |
192 | .name = "at25320an", | 191 | .name = "at25320an", |
193 | .byte_len = 4096, | 192 | .byte_len = 4096, |
@@ -211,7 +210,6 @@ static const struct spi_imx_master pca100_spi0_data __initconst = { | |||
211 | .chipselect = pca100_spi_cs, | 210 | .chipselect = pca100_spi_cs, |
212 | .num_chipselect = ARRAY_SIZE(pca100_spi_cs), | 211 | .num_chipselect = ARRAY_SIZE(pca100_spi_cs), |
213 | }; | 212 | }; |
214 | #endif | ||
215 | 213 | ||
216 | static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) | 214 | static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) |
217 | { | 215 | { |
@@ -389,13 +387,11 @@ static void __init pca100_init(void) | |||
389 | 387 | ||
390 | imx27_add_imx_i2c(1, &pca100_i2c1_data); | 388 | imx27_add_imx_i2c(1, &pca100_i2c1_data); |
391 | 389 | ||
392 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
393 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); | 390 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); |
394 | mxc_gpio_mode(GPIO_PORTD | 27 | GPIO_GPIO | GPIO_IN); | 391 | mxc_gpio_mode(GPIO_PORTD | 27 | GPIO_GPIO | GPIO_IN); |
395 | spi_register_board_info(pca100_spi_board_info, | 392 | spi_register_board_info(pca100_spi_board_info, |
396 | ARRAY_SIZE(pca100_spi_board_info)); | 393 | ARRAY_SIZE(pca100_spi_board_info)); |
397 | imx27_add_spi_imx0(&pca100_spi0_data); | 394 | imx27_add_spi_imx0(&pca100_spi0_data); |
398 | #endif | ||
399 | 395 | ||
400 | gpio_request(OTG_PHY_CS_GPIO, "usb-otg-cs"); | 396 | gpio_request(OTG_PHY_CS_GPIO, "usb-otg-cs"); |
401 | gpio_direction_output(OTG_PHY_CS_GPIO, 1); | 397 | gpio_direction_output(OTG_PHY_CS_GPIO, 1); |