We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb5a99 commit a6191a3Copy full SHA for a6191a3
drivers/gpio/gpio-aspeed.c
@@ -1193,7 +1193,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
1193
if (!gpio_id)
1194
return -EINVAL;
1195
1196
- gpio->clk = of_clk_get(pdev->dev.of_node, 0);
+ gpio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
1197
if (IS_ERR(gpio->clk)) {
1198
dev_warn(&pdev->dev,
1199
"Failed to get clock from devicetree, debouncing disabled\n");
0 commit comments