File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ static int gpio_clk_driver_probe(struct platform_device *pdev)
200
200
struct gpio_desc * gpiod ;
201
201
struct clk_hw * hw ;
202
202
bool is_mux ;
203
- int ret ;
204
203
205
204
is_mux = of_device_is_compatible (node , "gpio-mux-clock" );
206
205
@@ -212,17 +211,9 @@ static int gpio_clk_driver_probe(struct platform_device *pdev)
212
211
213
212
gpio_name = is_mux ? "select" : "enable" ;
214
213
gpiod = devm_gpiod_get (dev , gpio_name , GPIOD_OUT_LOW );
215
- if (IS_ERR (gpiod )) {
216
- ret = PTR_ERR (gpiod );
217
- if (ret == - EPROBE_DEFER )
218
- pr_debug ("%pOFn: %s: GPIOs not yet available, retry later\n" ,
219
- node , __func__ );
220
- else
221
- pr_err ("%pOFn: %s: Can't get '%s' named GPIO property\n" ,
222
- node , __func__ ,
223
- gpio_name );
224
- return ret ;
225
- }
214
+ if (IS_ERR (gpiod ))
215
+ return dev_err_probe (dev , PTR_ERR (gpiod ),
216
+ "Can't get '%s' named GPIO property\n" , gpio_name );
226
217
227
218
if (is_mux )
228
219
hw = clk_hw_register_gpio_mux (dev , gpiod );
You can’t perform that action at this time.
0 commit comments