File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ static int tpa6130a2_probe(struct i2c_client *client,
256
256
if (ret < 0 ) {
257
257
dev_err (dev , "Failed to request power GPIO (%d)\n" ,
258
258
data -> power_gpio );
259
- goto err_gpio ;
259
+ return ret ;
260
260
}
261
261
gpio_direction_output (data -> power_gpio , 0 );
262
262
}
@@ -277,12 +277,12 @@ static int tpa6130a2_probe(struct i2c_client *client,
277
277
if (IS_ERR (data -> supply )) {
278
278
ret = PTR_ERR (data -> supply );
279
279
dev_err (dev , "Failed to request supply: %d\n" , ret );
280
- goto err_gpio ;
280
+ return ret ;
281
281
}
282
282
283
283
ret = tpa6130a2_power (data , true);
284
284
if (ret != 0 )
285
- goto err_gpio ;
285
+ return ret ;
286
286
287
287
288
288
/* Read version */
@@ -294,13 +294,10 @@ static int tpa6130a2_probe(struct i2c_client *client,
294
294
/* Disable the chip */
295
295
ret = tpa6130a2_power (data , false);
296
296
if (ret != 0 )
297
- goto err_gpio ;
297
+ return ret ;
298
298
299
299
return devm_snd_soc_register_component (& client -> dev ,
300
300
& tpa6130a2_component_driver , NULL , 0 );
301
-
302
- err_gpio :
303
- return ret ;
304
301
}
305
302
306
303
static const struct i2c_device_id tpa6130a2_id [] = {
You can’t perform that action at this time.
0 commit comments