From: Randy Dunlap Date: Sun, 4 Jan 2009 20:00:47 +0000 (-0800) Subject: spi.h uses/needs device.h X-Git-Tag: v2.6.29-rc1~518 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0a30c5cefa53cbac429dcb2de906c0637b646253;p=linux-2.6-omap-h63xx.git spi.h uses/needs device.h Include header files as used/needed: In file included from drivers/leds/leds-dac124s085.c:16: include/linux/spi/spi.h:66: error: field 'dev' has incomplete type include/linux/spi/spi.h: In function 'to_spi_device': include/linux/spi/spi.h:100: warning: type defaults to 'int' in declaration of '__mptr' ... Signed-off-by: Randy Dunlap Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 4be01bb4437..82229317753 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -19,6 +19,8 @@ #ifndef __LINUX_SPI_H #define __LINUX_SPI_H +#include + /* * INTERFACES between SPI master-side drivers and SPI infrastructure. * (There's no SPI slave support for Linux yet...)