spi: cs42l43: Handle error from devm_pm_runtime_enable
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 24 Jan 2024 17:41:01 +0000 (17:41 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2024 18:08:50 +0000 (18:08 +0000)
commitf9f4b0c6425eb9ffd9bf62b8b8143e786b6ba695
tree866fc5d966f0dc7826782abc696d85b3c0315f66
parent2f8c7c3715f2c6fb51a4ecc0905c04dd78a3da29
spi: cs42l43: Handle error from devm_pm_runtime_enable

As it devm_pm_runtime_enable can fail due to memory allocations, it is
best to handle the error.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20240124174101.2270249-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cs42l43.c