Messages in this thread Patch in this message | | | Date | Fri, 3 Jul 2009 10:46:40 -0700 | From | Randy Dunlap <> | Subject | [PATCH -mmotm] gpio.h: fix warning for GENERIC_GPIO=n |
| |
From: Randy Dunlap <randy.dunlap@oracle.com>
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@oracle.com> --- 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/
| |