Commit 0b893123 authored by Laxman Dewangan's avatar Laxman Dewangan

gpio: bcm-kona: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: default avatarLaxman Dewangan <>
Cc: Ray Jui <>
Acked-by: default avatarRay Jui <>
parent db303a90
......@@ -630,7 +630,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment