| .. | .. |
|---|
| 445 | 445 | .non_legacy_dai_naming = 1, |
|---|
| 446 | 446 | }; |
|---|
| 447 | 447 | |
|---|
| 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 | | - |
|---|
| 464 | 448 | static int adau7118_regulator_setup(struct adau7118_data *st) |
|---|
| 465 | 449 | { |
|---|
| 466 | 450 | st->iovdd = devm_regulator_get(st->dev, "iovdd"); |
|---|
| .. | .. |
|---|
| 482 | 466 | regcache_cache_only(st->map, true); |
|---|
| 483 | 467 | } |
|---|
| 484 | 468 | |
|---|
| 485 | | - return devm_add_action_or_reset(st->dev, adau7118_regulator_disable, |
|---|
| 486 | | - st); |
|---|
| 469 | + return 0; |
|---|
| 487 | 470 | } |
|---|
| 488 | 471 | |
|---|
| 489 | 472 | static int adau7118_parset_dt(const struct adau7118_data *st) |
|---|