diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2026-04-07 15:26:59 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-10 13:46:19 +0100 |
| commit | ab00febad191d7a4400aa1c3468279fb508258d4 (patch) | |
| tree | 6baf3d0d8aff78e67740eb0fb6ab2964f247ce1e /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 45daacbead8a009844bd5dba6cfa731332184d17 (diff) | |
spi: mtk-snfi: unregister ECC engine on probe failure and remove() callback
mtk_snand_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: 764f1b748164 ("spi: add driver for MTK SPI NAND Flash Interface")
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://patch.msgid.link/20263f885f1a9c9d559f95275298cd6de4b11ed5.1775546401.git.xiaopei01@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
