kernel_samsung_a53x/drivers/mmc/host
Uwe Kleine-König 31e597a5ca mmc: davinci: Don't strip remove function when driver is builtin
[ Upstream commit 55c421b364482b61c4c45313a535e61ed5ae4ea3 ]

Using __exit for the remove function results in the remove callback being
discarded with CONFIG_MMC_DAVINCI=y. When such a device gets unbound (e.g.
using sysfs or hotplug), the driver is just removed without the cleanup
being performed. This results in resource leaks. Fix it by compiling in the
remove callback unconditionally.

This also fixes a W=1 modpost warning:

WARNING: modpost: drivers/mmc/host/davinci_mmc: section mismatch in
reference: davinci_mmcsd_driver+0x10 (section: .data) ->
davinci_mmcsd_remove (section: .exit.text)

Fixes: b4cff4549b7a ("DaVinci: MMC: MMC/SD controller driver for DaVinci family")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240324114017.231936-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:01 +01:00
..
alcor.c
android-goldfish.c
atmel-mci.c
au1xmmc.c
bcm2835.c
cavium-octeon.c
cavium-thunderx.c
cavium.c
cavium.h
cb710-mmc.c
cb710-mmc.h
cqhci-core.c mmc: cqhci: Fix task clearing in CQE error recovery 2024-11-18 12:11:16 +01:00
cqhci-crypto.c
cqhci-crypto.h
cqhci.h
davinci_mmc.c mmc: davinci: Don't strip remove function when driver is builtin 2024-11-19 14:19:01 +01:00
dw_mmc-bluefield.c
dw_mmc-exynos.c
dw_mmc-exynos.h
dw_mmc-hi3798cv200.c
dw_mmc-k3.c
dw_mmc-pci.c
dw_mmc-pltfm.c
dw_mmc-pltfm.h
dw_mmc-rockchip.c
dw_mmc-zx.c
dw_mmc-zx.h
dw_mmc.c
dw_mmc.h
jz4740_mmc.c
Kconfig mmc: sdhci_omap: Fix TI SoC dependencies 2024-11-18 12:12:43 +01:00
Makefile
meson-gx-mmc.c mmc: meson-gx: Remove setting of CMD_CFG_ERROR 2024-11-18 11:43:25 +01:00
meson-mx-sdhc-clkc.c
meson-mx-sdhc-mmc.c mmc: meson-mx-sdhc: Fix initialization frozen issue 2024-11-18 12:12:08 +01:00
meson-mx-sdhc.h
meson-mx-sdio.c
mmc-sec-feature.c
mmc-sec-feature.h
mmc-sec-sysfs.c
mmc-sec-sysfs.h
mmc_hsq.c
mmc_hsq.h
mmc_spi.c mmc: mmc_spi: remove custom DMA mapped buffers 2024-11-18 12:12:58 +01:00
mmci.c
mmci.h
mmci_qcom_dml.c
mmci_stm32_sdmmc.c mmc: mmci: stm32: fix DMA API overlapping mappings warning 2024-11-18 23:19:34 +01:00
moxart-mmc.c
mtk-sd.c
mvsdio.c
mvsdio.h
mxcmmc.c
mxs-mmc.c
of_mmc_spi.c
omap.c
omap_hsmmc.c
owl-mmc.c
pxamci.c
pxamci.h
renesas_sdhi.h
renesas_sdhi_core.c
renesas_sdhi_internal_dmac.c
renesas_sdhi_sys_dmac.c
rtsx_pci_sdmmc.c
rtsx_usb_sdmmc.c
s3cmci.c
s3cmci.h
sdhci-acpi.c mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A 2024-11-19 12:27:18 +01:00
sdhci-bcm-kona.c
sdhci-brcmstb.c
sdhci-cadence.c
sdhci-cns3xxx.c
sdhci-cqhci.h
sdhci-dove.c
sdhci-esdhc-imx.c
sdhci-esdhc-mcf.c
sdhci-esdhc.h
sdhci-iproc.c
sdhci-milbeaut.c
sdhci-msm.c
sdhci-of-arasan.c
sdhci-of-aspeed.c
sdhci-of-at91.c
sdhci-of-dwcmshc.c
sdhci-of-esdhc.c
sdhci-of-hlwd.c
sdhci-of-sparx5.c
sdhci-omap.c
sdhci-pci-arasan.c
sdhci-pci-core.c
sdhci-pci-data.c
sdhci-pci-dwc-mshc.c
sdhci-pci-gli.c
sdhci-pci-o2micro.c
sdhci-pci.h
sdhci-pic32.c
sdhci-pltfm.c
sdhci-pltfm.h
sdhci-pxav2.c
sdhci-pxav3.c
sdhci-s3c.c
sdhci-sirf.c
sdhci-spear.c
sdhci-sprd.c mmc: sdhci-sprd: Fix eMMC init failure after hw reset 2024-11-18 12:12:08 +01:00
sdhci-st.c
sdhci-tegra.c
sdhci-xenon-phy.c mmc: sdhci-xenon: fix PHY init clock stability 2024-11-18 23:18:29 +01:00
sdhci-xenon.c
sdhci-xenon.h
sdhci.c
sdhci.h
sdhci_am654.c mmc: sdhci_am654: Fix ITAPDLY for HS400 timing 2024-11-19 12:27:05 +01:00
sdhci_f_sdh30.c
sdhci_f_sdh30.h
sdricoh_cs.c
sh_mmcif.c
sunxi-mmc.c
tifm_sd.c
tmio_mmc.c
tmio_mmc.h
tmio_mmc_core.c mmc: tmio: avoid concurrent runs of mmc_request_done() 2024-11-19 09:22:17 +01:00
toshsd.c
toshsd.h
uniphier-sd.c
usdhi6rol0.c
ushc.c
via-sdmmc.c
vub300.c
wbsd.c
wbsd.h
wmt-sdmmc.c mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function 2024-11-19 08:44:48 +01:00