[PATCH] ARM: NUC900: Fix type error

Li Jie eltshanli at gmail.com
Thu Dec 17 02:05:09 EST 2009


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

We should use nuc900_spi_info instead of w90p910_spi_info, right ?

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



More information about the linux-arm-kernel mailing list