Revert "gpio: aspeed: Use devm_clk api to manage clock source"
This reverts commit 5b029f2352
.
This commit is contained in:
parent
81da5daf84
commit
45a06dded9
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
|
|||
if (!gpio_id)
|
||||
return -EINVAL;
|
||||
|
||||
gpio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
|
||||
gpio->clk = of_clk_get(pdev->dev.of_node, 0);
|
||||
if (IS_ERR(gpio->clk)) {
|
||||
dev_warn(&pdev->dev,
|
||||
"Failed to get clock from devicetree, debouncing disabled\n");
|
||||
|
|
Loading…
Reference in a new issue