hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/sound/soc/codecs/adau7118.c
....@@ -445,22 +445,6 @@
445445 .non_legacy_dai_naming = 1,
446446 };
447447
448
-static void adau7118_regulator_disable(void *data)
449
-{
450
- struct adau7118_data *st = data;
451
- int ret;
452
- /*
453
- * If we fail to disable DVDD, don't bother in trying IOVDD. We
454
- * actually don't want to be left in the situation where DVDD
455
- * is enabled and IOVDD is disabled.
456
- */
457
- ret = regulator_disable(st->dvdd);
458
- if (ret)
459
- return;
460
-
461
- regulator_disable(st->iovdd);
462
-}
463
-
464448 static int adau7118_regulator_setup(struct adau7118_data *st)
465449 {
466450 st->iovdd = devm_regulator_get(st->dev, "iovdd");
....@@ -482,8 +466,7 @@
482466 regcache_cache_only(st->map, true);
483467 }
484468
485
- return devm_add_action_or_reset(st->dev, adau7118_regulator_disable,
486
- st);
469
+ return 0;
487470 }
488471
489472 static int adau7118_parset_dt(const struct adau7118_data *st)