Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tlv320aic3x: Use dev_err_probe

During probe the regulator supply drivers may not yet be available.
Use dev_err_probe to provide just the pertinent log.

Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://patch.msgid.link/20250512185739.2907466-1-nm@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Nishanth Menon and committed by
Mark Brown
85f8c2d5 144d6dfc

+2 -4
+2 -4
sound/soc/codecs/tlv320aic3x.c
··· 1818 1818 1819 1819 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(aic3x->supplies), 1820 1820 aic3x->supplies); 1821 - if (ret) { 1822 - dev_err(dev, "Failed to request supplies: %d\n", ret); 1823 - return ret; 1824 - } 1821 + if (ret) 1822 + return dev_err_probe(dev, ret, "Failed to request supplies\n"); 1825 1823 1826 1824 aic3x_configure_ocmv(dev, aic3x); 1827 1825