]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: amlogic: spifc-a4: Remove redundant clock cleanup
authorFelix Gu <ustc.gu@gmail.com>
Sun, 8 Mar 2026 13:34:55 +0000 (21:34 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 15 Mar 2026 23:57:53 +0000 (23:57 +0000)
commita00da54d06f435dbbeacb84f9121dbbe6d6eda74
tree7eba8c285f2f5ac8f27befc4b08c17ec749a92d6
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
spi: amlogic: spifc-a4: Remove redundant clock cleanup

The driver uses devm_clk_get_enabled() which enables the clock and
registers a callback to automatically disable it when the device
is unbound.

Remove the redundant aml_sfc_disable_clk() call in the error paths
and remove callback.

Fixes: 4670db6f32e9 ("spi: amlogic: add driver for Amlogic SPI Flash Controller")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260308-spifc-a4-1-v1-1-77e286c26832@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amlogic-spifc-a4.c