summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-30 17:16:38 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-01-28 17:28:59 +0300
commitccdbddfeff58788f7887f39a681b73c3d95b1d2f (patch)
tree3cfc51b7cc3984d0794ddc82bf06bd201f0191da /drivers/gpio/gpio-davinci.c
parent5df7fd46b70bcc5517dcfbd433719cea9ebe5eff (diff)
downloadlinux-ccdbddfeff58788f7887f39a681b73c3d95b1d2f.tar.xz
gpio: davinci: use irq_data_get_chip_type
Use irq_data_get_chip_type() instead of container_of(). Signed-off-by: Geliang Tang <geliangtang@163.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Acked-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r--drivers/gpio/gpio-davinci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index ec58f4288649..845edffbcc3f 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -432,8 +432,7 @@ static struct irq_chip *davinci_gpio_get_irq_chip(unsigned int irq)
{
static struct irq_chip_type gpio_unbanked;
- gpio_unbanked = *container_of(irq_get_chip(irq),
- struct irq_chip_type, chip);
+ gpio_unbanked = *irq_data_get_chip_type(irq_get_irq_data(irq));
return &gpio_unbanked.chip;
};