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>
This commit is contained in:
parent
5df7fd46b7
commit
ccdbddfeff
@ -432,8 +432,7 @@ static struct irq_chip *davinci_gpio_get_irq_chip(unsigned int irq)
|
|||||||
{
|
{
|
||||||
static struct irq_chip_type gpio_unbanked;
|
static struct irq_chip_type gpio_unbanked;
|
||||||
|
|
||||||
gpio_unbanked = *container_of(irq_get_chip(irq),
|
gpio_unbanked = *irq_data_get_chip_type(irq_get_irq_data(irq));
|
||||||
struct irq_chip_type, chip);
|
|
||||||
|
|
||||||
return &gpio_unbanked.chip;
|
return &gpio_unbanked.chip;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user