Commit c0f832bc authored by Eric Bénard's avatar Eric Bénard Committed by Sascha Hauer

mach-pcm037_eet: fix compile errors

this patch fix the following errors :
arch/arm/mach-mx3/mach-pcm037_eet.c:62: error: implicit declaration of function 'MXC_SPI_CS'
arch/arm/mach-mx3/mach-pcm037_eet.c:185: error: implicit declaration of function 'imx35_add_spi_imx0'

from the Kconfig pcm037 is i.MX31 based and not i.MX35 so replace
imx35_add_spi_imx0 by imx31_add_spi_imx0
Signed-off-by: default avatarEric Bénard <eric@eukrea.com>
[ukl: remove unneeded #include <mach/spi.h>]
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent d24d96e0
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "pcm037.h" #include "pcm037.h"
#include "devices.h" #include "devices.h"
#include "devices-imx31.h"
static unsigned int pcm037_eet_pins[] = { static unsigned int pcm037_eet_pins[] = {
/* Reserve and hardwire GPIO 57 high - S6E63D6 chipselect */ /* Reserve and hardwire GPIO 57 high - S6E63D6 chipselect */
...@@ -181,7 +182,7 @@ static int eet_init_devices(void) ...@@ -181,7 +182,7 @@ static int eet_init_devices(void)
/* SPI */ /* SPI */
spi_register_board_info(pcm037_spi_dev, ARRAY_SIZE(pcm037_spi_dev)); spi_register_board_info(pcm037_spi_dev, ARRAY_SIZE(pcm037_spi_dev));
#if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE)
imx35_add_spi_imx0(&pcm037_spi1_pdata); imx31_add_spi_imx0(&pcm037_spi1_pdata);
#endif #endif
platform_device_register(&pcm037_gpio_keys_device); platform_device_register(&pcm037_gpio_keys_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment