[PATCH] ARM: NUC900: Fix type error

Wan ZongShun mcuos.com at gmail.com
Thu Dec 17 02:15:43 EST 2009


2009/12/17 Li Jie <eltshanli at gmail.com>:
> Hi, Wan:
>
> When I compiling latest kernel code, I met following error:
>  CC      arch/arm/mach-w90x900/dev.o
> arch/arm/mach-w90x900/dev.c:200: error: variable
> ‘nuc900_spiflash_data’ has initializer but incomplete type
>

Really? I think that I submitted it after building.

> We should use nuc900_spi_info instead of w90p910_spi_info, right ?

Okay, wait for me to check this later, if so, I am sorry for this mistake.

> Signed-off-by: lijie <eltshanli at gmail.com>
> ---
>  arch/arm/mach-w90x900/dev.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-w90x900/dev.c b/arch/arm/mach-w90x900/dev.c
> index 51f17b7..ec711f4 100644
> --- a/arch/arm/mach-w90x900/dev.c
> +++ b/arch/arm/mach-w90x900/dev.c
> @@ -197,7 +197,7 @@ static struct platform_device nuc900_device_emc = {
>
>  /* SPI device */
>
> -static struct w90p910_spi_info nuc900_spiflash_data = {
> +static struct nuc900_spi_info nuc900_spiflash_data = {
>        .num_cs         = 1,
>        .lsb            = 0,
>        .txneg          = 1,
> --
> 1.6.5.4
>



-- 
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list