[PATCH -mm] spi: fix compile error

From: Fernando Luis Vázquez Cao
Date: Wed Oct 29 2008 - 03:45:46 EST


Fix compile error below:

LD drivers/spi/built-in.o
CC [M] drivers/spi/spi_gpio.o
In file included from drivers/spi/spi_gpio.c:26:
include/linux/spi/spi_bitbang.h:23: error: field âworkâ has incomplete type
make[2]: *** [drivers/spi/spi_gpio.o] Error 1
make[1]: *** [drivers/spi] Error 2
make: *** [drivers] Error 2

Signed-off-by: Fernando Luis Vazquez Cao <fernando@xxxxxxxxxxxxx>
---

diff -urNp linux-2.6.28-rc2-mm1-orig/include/linux/spi/spi_bitbang.h linux-2.6.28-rc2-mm1/include/linux/spi/spi_bitbang.h
--- linux-2.6.28-rc2-mm1-orig/include/linux/spi/spi_bitbang.h 2008-10-10 07:13:53.000000000 +0900
+++ linux-2.6.28-rc2-mm1/include/linux/spi/spi_bitbang.h 2008-10-29 16:25:31.000000000 +0900
@@ -18,6 +18,9 @@
* duplex (MicroWire) controllers. Provide chipslect() and txrx_bufs(),
* and custom setup()/cleanup() methods.
*/
+
+#include <linux/workqueue.h>
+
struct spi_bitbang {
struct workqueue_struct *workqueue;
struct work_struct work;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/