Skip to content

Commit ae5004a

Browse files
tititiou36storulf
authored andcommitted
mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function
This looks strange to call release_mem_region() in a remove function without any request_mem_region() in the probe or "struct resource" somewhere. So remove the corresponding code. Fixes: 3a96dff ("mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/bb0bb1ed1e18de55e8c0547625bde271e64b8c31.1708983064.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <[email protected]>
1 parent 2f7c995 commit ae5004a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/mmc/host/wmt-sdmmc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ static void wmt_mci_remove(struct platform_device *pdev)
883883
{
884884
struct mmc_host *mmc;
885885
struct wmt_mci_priv *priv;
886-
struct resource *res;
887886
u32 reg_tmp;
888887

889888
mmc = platform_get_drvdata(pdev);
@@ -911,9 +910,6 @@ static void wmt_mci_remove(struct platform_device *pdev)
911910
clk_disable_unprepare(priv->clk_sdmmc);
912911
clk_put(priv->clk_sdmmc);
913912

914-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
915-
release_mem_region(res->start, resource_size(res));
916-
917913
mmc_free_host(mmc);
918914

919915
dev_info(&pdev->dev, "WMT MCI device removed\n");

0 commit comments

Comments
 (0)