diff options
Diffstat (limited to 'drivers/gpio/gpio-mxs.c')
-rw-r--r-- | drivers/gpio/gpio-mxs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index af55a8577c2e..292b50481db9 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c | |||
@@ -49,6 +49,8 @@ | |||
49 | #define GPIO_INT_LEV_MASK (1 << 0) | 49 | #define GPIO_INT_LEV_MASK (1 << 0) |
50 | #define GPIO_INT_POL_MASK (1 << 1) | 50 | #define GPIO_INT_POL_MASK (1 << 1) |
51 | 51 | ||
52 | #define irq_to_gpio(irq) ((irq) - MXS_GPIO_IRQ_START) | ||
53 | |||
52 | struct mxs_gpio_port { | 54 | struct mxs_gpio_port { |
53 | void __iomem *base; | 55 | void __iomem *base; |
54 | int id; | 56 | int id; |