diff options
Diffstat (limited to 'drivers/gpio/gpio-lpc32xx.c')
| -rw-r--r-- | drivers/gpio/gpio-lpc32xx.c | 15 | 
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c index 90a80eb688a..225344d6640 100644 --- a/drivers/gpio/gpio-lpc32xx.c +++ b/drivers/gpio/gpio-lpc32xx.c @@ -21,13 +21,14 @@  #include <linux/io.h>  #include <linux/errno.h>  #include <linux/gpio.h> +#include <linux/of.h>  #include <linux/of_gpio.h>  #include <linux/platform_device.h>  #include <linux/module.h> +#include <linux/platform_data/gpio-lpc32xx.h>  #include <mach/hardware.h>  #include <mach/platform.h> -#include <mach/gpio-lpc32xx.h>  #include <mach/irqs.h>  #define LPC32XX_GPIO_P3_INP_STATE		_GPREG(0x000) @@ -447,7 +448,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPIO_P0_GRP,  			.ngpio			= LPC32XX_GPIO_P0_MAX,  			.names			= gpio_p0_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p0,  	}, @@ -463,7 +464,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPIO_P1_GRP,  			.ngpio			= LPC32XX_GPIO_P1_MAX,  			.names			= gpio_p1_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p1,  	}, @@ -478,7 +479,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPIO_P2_GRP,  			.ngpio			= LPC32XX_GPIO_P2_MAX,  			.names			= gpio_p2_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p2,  	}, @@ -494,7 +495,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPIO_P3_GRP,  			.ngpio			= LPC32XX_GPIO_P3_MAX,  			.names			= gpio_p3_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p3,  	}, @@ -508,7 +509,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPI_P3_GRP,  			.ngpio			= LPC32XX_GPI_P3_MAX,  			.names			= gpi_p3_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p3,  	}, @@ -522,7 +523,7 @@ static struct lpc32xx_gpio_chip lpc32xx_gpiochip[] = {  			.base			= LPC32XX_GPO_P3_GRP,  			.ngpio			= LPC32XX_GPO_P3_MAX,  			.names			= gpo_p3_names, -			.can_sleep		= 0, +			.can_sleep		= false,  		},  		.gpio_grp = &gpio_grp_regs_p3,  	},  | 
