File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,11 @@ static struct gpiod_lookup_table wm8996_gpiod_table = {
347
347
},
348
348
};
349
349
350
+ static void speyside_gpiod_table_action (void * data )
351
+ {
352
+ gpiod_remove_lookup_table (& wm8996_gpiod_table );
353
+ }
354
+
350
355
static int speyside_probe (struct platform_device * pdev )
351
356
{
352
357
struct snd_soc_card * card = & speyside ;
@@ -355,6 +360,11 @@ static int speyside_probe(struct platform_device *pdev)
355
360
card -> dev = & pdev -> dev ;
356
361
357
362
gpiod_add_lookup_table (& wm8996_gpiod_table );
363
+ ret = devm_add_action_or_reset (& pdev -> dev , speyside_gpiod_table_action ,
364
+ NULL );
365
+ if (ret )
366
+ return ret ;
367
+
358
368
ret = devm_snd_soc_register_card (& pdev -> dev , card );
359
369
if (ret )
360
370
dev_err_probe (& pdev -> dev , ret , "snd_soc_register_card() failed\n" );
You can’t perform that action at this time.
0 commit comments