diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-22 22:28:45 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-30 18:53:06 +0100 |
| commit | b0dc7e7c56573e7a52080f25f3179a45f3dd7e6f (patch) | |
| tree | 2f7b4f63cd6f88ad5ce4f1e7e2b403b7c588f5aa /include/asm-cris/git@git.tavy.me:linux.git | |
| parent | 534025950c9fe4dfbe476b3938d73a26814047d1 (diff) | |
spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback
aml_sfc_probe() registers the on-host NAND ECC engine, but teardown was
missing from both probe unwind and remove-time cleanup. Add a devm cleanup
action after successful registration so
nand_ecc_unregister_on_host_hw_engine() runs automatically on probe
failures and during device removal.
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/20260322-spifc-a4-v1-1-2dc5ebcbe0a9@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/asm-cris/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
