File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
drivers/platform/x86/intel-int3472 Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,10 @@ static int skl_int3472_parse_crs(struct int3472_discrete_device *int3472)
308
308
ret = acpi_dev_get_resources (int3472 -> adev , & resource_list ,
309
309
skl_int3472_handle_gpio_resources ,
310
310
int3472 );
311
- if (ret )
312
- goto out_free_res_list ;
311
+ if (ret < 0 )
312
+ return ret ;
313
+
314
+ acpi_dev_free_resource_list (& resource_list );
313
315
314
316
/*
315
317
* If we find no clock enable GPIO pin then the privacy LED won't work.
@@ -319,7 +321,7 @@ static int skl_int3472_parse_crs(struct int3472_discrete_device *int3472)
319
321
if (int3472 -> clock .ena_gpio ) {
320
322
ret = skl_int3472_register_clock (int3472 );
321
323
if (ret )
322
- goto out_free_res_list ;
324
+ return ret ;
323
325
} else {
324
326
if (int3472 -> clock .led_gpio )
325
327
dev_warn (int3472 -> dev ,
@@ -329,10 +331,7 @@ static int skl_int3472_parse_crs(struct int3472_discrete_device *int3472)
329
331
int3472 -> gpios .dev_id = int3472 -> sensor_name ;
330
332
gpiod_add_lookup_table (& int3472 -> gpios );
331
333
332
- out_free_res_list :
333
- acpi_dev_free_resource_list (& resource_list );
334
-
335
- return ret ;
334
+ return 0 ;
336
335
}
337
336
338
337
int skl_int3472_discrete_probe (struct platform_device * pdev )
You can’t perform that action at this time.
0 commit comments