aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/clk-gpio.c')
-rw-r--r--drivers/clk/clk-gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index 151513c655c3..40af4fbab4d2 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -73,14 +73,14 @@ static u8 clk_gpio_mux_get_parent(struct clk_hw *hw)
73{ 73{
74 struct clk_gpio *clk = to_clk_gpio(hw); 74 struct clk_gpio *clk = to_clk_gpio(hw);
75 75
76 return gpiod_get_value(clk->gpiod); 76 return gpiod_get_value_cansleep(clk->gpiod);
77} 77}
78 78
79static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index) 79static int clk_gpio_mux_set_parent(struct clk_hw *hw, u8 index)
80{ 80{
81 struct clk_gpio *clk = to_clk_gpio(hw); 81 struct clk_gpio *clk = to_clk_gpio(hw);
82 82
83 gpiod_set_value(clk->gpiod, index); 83 gpiod_set_value_cansleep(clk->gpiod, index);
84 84
85 return 0; 85 return 0;
86} 86}