mfd: cs42l43: Handle error from devm_pm_runtime_enable()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 29 Jan 2024 15:25:57 +0000 (15:25 +0000)
committerLee Jones <lee@kernel.org>
Fri, 23 Feb 2024 14:58:02 +0000 (14:58 +0000)
commitcab2ce7fce877dfd27af6eab0d7a36ee068dddda
treef9d7c9f4c10478a69022433a8b277b1e9ed12a3f
parentd92b9bcfce940ec7f330980b042d26787c9570ea
mfd: 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>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240129152557.3221212-6-ckeepax@opensource.cirrus.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/cs42l43.c