mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
pinctrl: pinctrl-pic32: Use devres version of gpiochip_add_data()
Convert gpiochip_add_data() to devm_gpiochip_add_data() to use devres style cleanup across entire driver. Suggested-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
committed by
Linus Walleij
parent
fe5560688f
commit
f08061d267
@@ -2253,7 +2253,7 @@ static int pic32_gpio_probe(struct platform_device *pdev)
|
||||
girq->default_type = IRQ_TYPE_NONE;
|
||||
girq->handler = handle_level_irq;
|
||||
girq->parents[0] = irq;
|
||||
ret = gpiochip_add_data(&bank->gpio_chip, bank);
|
||||
ret = devm_gpiochip_add_data(&pdev->dev, &bank->gpio_chip, bank);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Failed to add GPIO chip %u: %d\n",
|
||||
id, ret);
|
||||
|
||||
Reference in New Issue
Block a user