Janusz Krzysztofik 50c678772a
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 <jmkrzyszt@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-06-25 12:45:15 +01:00
..
2018-02-12 09:37:29 +00:00
2015-10-05 17:42:49 +01:00
2018-02-19 16:53:10 +00:00
2018-02-27 10:41:34 +00:00
2015-07-07 13:35:13 +01:00
2018-02-21 11:19:57 +00:00
2017-06-13 19:30:53 +01:00
2018-02-15 17:14:16 +00:00
2018-06-18 12:54:38 +01:00
2016-08-08 11:55:20 +01:00
2018-06-18 12:54:38 +01:00
2018-02-20 12:05:58 +00:00
2018-03-02 13:17:04 +00:00
2018-03-02 13:17:04 +00:00
2018-04-26 12:44:15 +01:00
2018-05-18 17:46:03 +01:00
2017-07-18 14:46:20 +01:00
2015-12-19 12:02:18 +00:00
2018-02-12 11:48:26 +00:00
2018-02-12 11:48:26 +00:00
2018-06-18 12:54:38 +01:00
2018-05-18 11:20:11 +01:00
2016-06-26 12:28:13 +01:00
2018-06-01 12:05:30 +01:00
2018-06-01 12:05:30 +01:00
2015-04-08 19:25:40 +01:00