mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
soc: mediatek: mtk-devapc: Fix leaking IO map on driver remove
Driver removal should fully clean up - unmap the memory.
Fixes: 0890beb226 ("soc: mediatek: add mt6779 devapc driver")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250104142012.115974-2-krzysztof.kozlowski@linaro.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
This commit is contained in:
parent
c0eb059a45
commit
c9c0036c19
1 changed files with 1 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ static void mtk_devapc_remove(struct platform_device *pdev)
|
|||
struct mtk_devapc_context *ctx = platform_get_drvdata(pdev);
|
||||
|
||||
stop_devapc(ctx);
|
||||
iounmap(ctx->infra_base);
|
||||
}
|
||||
|
||||
static struct platform_driver mtk_devapc_driver = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue