summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBilly Tsai <billy_tsai@aspeedtech.com>2024-10-08 16:14:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-17 15:24:26 +0200
commit1e4a5eed757c5d8ff9acd8ef3c0b31d94074626e (patch)
treecd0b791fb777e8fc16238f61c82a19ac885c5cdb /drivers/gpio
parent2a165df9ce203ca7ab306ac6311a2772ed062ec5 (diff)
downloadlinux-rpi-1e4a5eed757c5d8ff9acd8ef3c0b31d94074626e.tar.gz
linux-rpi-1e4a5eed757c5d8ff9acd8ef3c0b31d94074626e.tar.bz2
linux-rpi-1e4a5eed757c5d8ff9acd8ef3c0b31d94074626e.zip
gpio: aspeed: Use devm_clk api to manage clock source
[ Upstream commit a6191a3d18119184237f4ee600039081ad992320 ] Replace of_clk_get with devm_clk_get_enabled to manage the clock source. Fixes: 5ae4cb94b313 ("gpio: aspeed: Add debounce support") Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20241008081450.1490955-3-billy_tsai@aspeedtech.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c
index 017f083bc8c2..76468e6a2899 100644
--- a/drivers/gpio/gpio-aspeed.c
+++ b/drivers/gpio/gpio-aspeed.c
@@ -1193,7 +1193,7 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
if (!gpio_id)
return -EINVAL;
- gpio->clk = of_clk_get(pdev->dev.of_node, 0);
+ gpio->clk = devm_clk_get_enabled(&pdev->dev, NULL);
if (IS_ERR(gpio->clk)) {
dev_warn(&pdev->dev,
"Failed to get clock from devicetree, debouncing disabled\n");