From 5c7407144385668b748811fbad7c26191a80b1c6 Mon Sep 17 00:00:00 2001
From: luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Mon, 12 Nov 2012 19:27:29 +0000
Subject: cns3xxx: fix build failure after r34168

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34173 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 target/linux/cns3xxx/patches-3.3/075-spi_support.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'target/linux')

diff --git a/target/linux/cns3xxx/patches-3.3/075-spi_support.patch b/target/linux/cns3xxx/patches-3.3/075-spi_support.patch
index 0434c520e..bc1958db8 100644
--- a/target/linux/cns3xxx/patches-3.3/075-spi_support.patch
+++ b/target/linux/cns3xxx/patches-3.3/075-spi_support.patch
@@ -39,3 +39,19 @@
  				status = bitbang->txrx_bufs(spi, t);
  			}
  			if (status > 0)
+--- a/include/linux/spi/spi.h
++++ b/include/linux/spi/spi.h
+@@ -508,6 +508,13 @@ struct spi_transfer {
+ 	u32		speed_hz;
+ 
+ 	struct list_head transfer_list;
++
++#ifdef CONFIG_ARCH_CNS3XXX
++	unsigned	last_in_message_list;
++#ifdef CONFIG_SPI_CNS3XXX_2IOREAD
++	u8	dio_read;
++#endif
++#endif
+ };
+ 
+ /**
-- 
cgit v1.2.3