ASoC: intel: atom: Return -ENOMEM if pcim_iomap() fails
authorPhilipp Stanner <phasta@kernel.org>
Fri, 25 Apr 2025 08:17:43 +0000 (10:17 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 May 2025 10:32:13 +0000 (19:32 +0900)
commit14a3fd030c033453d436233f4c422b4903786ed3
tree4366e25b7aa49e12e250bed63af735581b765df7
parent938cabc603dc9b040fbfbf7c37b2b48dff8946d4
ASoC: intel: atom: Return -ENOMEM if pcim_iomap() fails

The error checks for pcim_iomap() have the function return -EINVAL.
-ENOMEM is a more appropriate error code.

Replace -EINVAL with -ENOMEM.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250425081742.61623-6-phasta@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_pci.c