Skip to content

Commit

Permalink
soc: mediatek: mtk-devapc: Fix leaking IO map on driver remove
Browse files Browse the repository at this point in the history
Driver removal should fully clean up - unmap the memory.

Fixes: 0890beb ("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>
  • Loading branch information
Krzysztof Kozlowski authored and AngeloGioacchino Del Regno committed Jan 7, 2025
1 parent c0eb059 commit c9c0036
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soc/mediatek/mtk-devapc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c9c0036

Please sign in to comment.