]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: bcm63xx: Fix missing pm_runtime_disable()
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 19 Aug 2024 12:33:49 +0000 (20:33 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 19 Aug 2024 12:43:30 +0000 (13:43 +0100)
commit265697288ec2160ca84707565d6641d46f69b0ff
treef9b5767b8f7fd30eda6185d9b0296fea63ce3601
parent909f34f2462a99bf876f64c5c61c653213e32fce
spi: bcm63xx: Fix missing pm_runtime_disable()

The pm_runtime_disable() is missing in the remove function, fix it
by using devm_pm_runtime_enable(), so the pm_runtime_disable() in
the probe error path can also be removed.

Fixes: 2d13f2ff6073 ("spi: bcm63xx-spi: fix pm_runtime")
Cc: stable@vger.kernel.org # v5.13+
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://patch.msgid.link/20240819123349.4020472-3-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx.c