[PATCH -mmotm] gpio.h: fix warning for GENERIC_GPIO=n

From: Randy Dunlap
Date: Fri Jul 03 2009 - 13:47:03 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix build for CONFIG_GENERIC_GPIO=n, which causes this warning:

include/linux/gpio.h:93: warning: 'struct device' declared inside parameter list
include/linux/gpio.h:93: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
include/linux/gpio.h | 2 ++
1 file changed, 2 insertions(+)

--- mmotm-2009-0702-1957.orig/include/linux/gpio.h
+++ mmotm-2009-0702-1957/include/linux/gpio.h
@@ -12,6 +12,8 @@
#include <linux/types.h>
#include <linux/errno.h>

+struct device;
+
/*
* Some platforms don't support the GPIO programming interface.
*


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
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/