mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
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
@ -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 New Issue
Block a user