diff options
| author | Janusz Krzysztofik <[email protected]> | 2018-06-24 20:14:41 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-06-25 12:45:15 +0100 |
| commit | 50c678772a0b3f9dc6b04262f27e2c373fe03a4d (patch) | |
| tree | 188000fadfb61d5469e8ffa46698e76cdb9a9a80 /tools/perf/scripts/python/netdev-times.py | |
| parent | f4c277b817cc9489fffabffb4e15d2f3b686056c (diff) | |
ASoC: cx20442: Don't ignore regulator_get() errors.
In its current shape, the driver just ignores errors returned by
regulator_get() at component_probe(). This doesn't hurt on Amstrad
Delta board as long as it registers the codec device at late_initcall,
when the regulator which depends on basic-mmio-gpio device (probed as
late as at dev_initcall) is already available. Otherwise the driver
may end up trying to control a codec which is not powered up.
Remove that dependency on initialization order by handling the error.
If the regulator is not yet available and -ENODEV is returned, convert
it to -EPROBE_DEFER to get another chance.
Signed-off-by: Janusz Krzysztofik <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions