Messages in this thread Patch in this message | | | Date | Tue, 24 May 2011 16:27:02 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] alpha: Hook up gpiolib support |
| |
On Wed, 18 May 2011 13:58:02 -0700 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:
> Allow people to use gpiolib on Alpha if they want to, mostly for build > coverage. The header is a stright copy of that for Microblaze, which in > turn was taken from PowerPC.
I got a great pile of build errors.
drivers/gpio/gpiolib.c:69: error: 'ARCH_NR_GPIOS' undeclared here (not in a function) drivers/gpio/gpiolib.c: In function 'gpio_ensure_requested': drivers/gpio/gpiolib.c:96: error: dereferencing pointer to incomplete type drivers/gpio/gpiolib.c:100: error: dereferencing pointer to incomplete type drivers/gpio/gpiolib.c:108: error: dereferencing pointer to incomplete type drivers/gpio/gpiolib.c: In function 'gpiochip_find_base':
drivers/gpio/gpiolib.c:783: error: redefinition of 'gpio_export_link' include/linux/gpio.h:120: note: previous definition of 'gpio_export_link' was here drivers/gpio/gpiolib.c:830: error: redefinition of 'gpio_sysfs_set_active_low' include/linux/gpio.h:128: note: previous definition of 'gpio_sysfs_set_active_low' was here
drivers/gpio/timbgpio.c:49: error: field 'gpio' has incomplete type drivers/gpio/timbgpio.c: In function 'timbgpio_update_bit': drivers/gpio/timbgpio.c:57: warning: type defaults to 'int' in declaration of '__mptr'
etc.
This fixed them:
--- a/arch/alpha/Kconfig~alpha-hook-up-gpiolib-support-fix +++ a/arch/alpha/Kconfig @@ -52,6 +52,9 @@ config GENERIC_CALIBRATE_DELAY config GENERIC_CMOS_UPDATE def_bool y +config GENERIC_GPIO + def_bool y + config ZONE_DMA bool default y _
| |