From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Fri, 15 Oct 2010 09:07:31 +0200 Subject: [PATCH 1/5] mach-pcm037_eet: fix compile errors In-Reply-To: <1287097205-18595-1-git-send-email-eric@eukrea.com> References: <1287097205-18595-1-git-send-email-eric@eukrea.com> Message-ID: <20101015070731.GF6747@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello, On Fri, Oct 15, 2010 at 01:00:01AM +0200, Eric B?nard wrote: > 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 Grrr, sorry. Can you please add a reference to a4dc013570e08ec4947b10fa78080da767b30527 in the commit log? > > Signed-off-by: Eric B?nard > --- > arch/arm/mach-mx3/mach-pcm037_eet.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-mx3/mach-pcm037_eet.c b/arch/arm/mach-mx3/mach-pcm037_eet.c > index c8b9821..2ee5d09 100644 > --- a/arch/arm/mach-mx3/mach-pcm037_eet.c > +++ b/arch/arm/mach-mx3/mach-pcm037_eet.c > @@ -14,11 +14,13 @@ > > #include > #include > +#include This is not needed as devices-imx31.h includes devices-common.h which in turn includes mach/spi.h. > > #include > > #include "pcm037.h" > #include "devices.h" > +#include "devices-imx31.h" > > static unsigned int pcm037_eet_pins[] = { > /* Reserve and hardwire GPIO 57 high - S6E63D6 chipselect */ > @@ -181,7 +183,7 @@ static int eet_init_devices(void) > /* SPI */ > spi_register_board_info(pcm037_spi_dev, ARRAY_SIZE(pcm037_spi_dev)); > #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 > > platform_device_register(&pcm037_gpio_keys_device); Other than that the change is OK. Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |