Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 1e4a5ee

Browse files
billy-tsaigregkh
authored andcommitted
gpio: aspeed: Use devm_clk api to manage clock source
[ Upstream commit a6191a3 ] Replace of_clk_get with devm_clk_get_enabled to manage the clock source. Fixes: 5ae4cb9 ("gpio: aspeed: Add debounce support") Reviewed-by: Andrew Jeffery <[email protected]> Signed-off-by: Billy Tsai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 2a165df commit 1e4a5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-aspeed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
11931193
if (!gpio_id)
11941194
return -EINVAL;
11951195

1196-
gpio->clk = of_clk_get(pdev->dev.of_node, 0);
1196+
gpio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
11971197
if (IS_ERR(gpio->clk)) {
11981198
dev_warn(&pdev->dev,
11991199
"Failed to get clock from devicetree, debouncing disabled\n");

0 commit comments

Comments
 (0)