Skip to content

Commit 03dd53c

Browse files
pdp7Fu Wei
authored andcommitted
gpio-starfive-jh710: fix "registered 0 GPIOs" message
Signed-off-by: Drew Fustini <drew@beagleboard.org>
1 parent cd0c3b1 commit 03dd53c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpio/gpio-starfive-jh7100.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ static int starfive_gpio_probe(struct platform_device *pdev)
511511

512512
writel_relaxed(1, chip->base + GPIO_EN);
513513

514-
dev_info(dev, "StarFive GPIO chip registered %d GPIOs\n", ngpio);
514+
dev_info(dev, "StarFive GPIO chip registered %d GPIOs\n",
515+
chip->gc.ngpio);
515516

516517
return 0;
517518
}

0 commit comments

Comments
 (0)