]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:49 +0000 (13:34 +0100)
commitab7318c79570af9b39ee1722f9ec61c44db08544
treeef257e6695a07a4c2f826c56330157241f1314bb
parent673629018ba04906899dcb631beec34d871f709c
spi: cs42l43: Handle error from devm_pm_runtime_enable

[ Upstream commit f9f4b0c6425eb9ffd9bf62b8b8143e786b6ba695 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-cs42l43.c