gpio: bcm-kona: Use devm_gpiochip_add_data() for gpio registration
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Cc: Ray Jui <rjui@broadcom.com> Acked-by: Ray Jui <ray.jui@broadcom.com>
This commit is contained in:
parent
db303a9053
commit
0b89312379
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
|
|||
|
||||
bcm_kona_gpio_reset(kona_gpio);
|
||||
|
||||
ret = gpiochip_add_data(chip, kona_gpio);
|
||||
ret = devm_gpiochip_add_data(dev, chip, kona_gpio);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "Couldn't add GPIO chip -- %d\n", ret);
|
||||
goto err_irq_domain;
|
||||
|
|
Loading…
Reference in a new issue