[PATCH 3.13 027/151] mmc: sdhci-bcm-kona: fix build errors when built-in

Kamal Mostafa kamal at canonical.com
Fri May 2 15:36:55 UTC 2014 -stable review patch.  If anyone has any objections, please let me know.


From: Russell King <rmk+kernel at arm.linux.org.uk>

commit 4025ce24f326830135341814307c072f6c2a7738 upstream.

`sdhci_bcm_kona_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

Fixes: 058feb53666f ("mmc: sdhci-bcm-kona: make linker-section warning go away")
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
Tested-by: Markus Mayer <markus.mayer at linaro.org>
Acked-by: Matt Porter <mporter at linaro.org>
Signed-off-by: Chris Ball <chris at printf.net>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
 drivers/mmc/host/sdhci-bcm-kona.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c
index 7a190fe..e5565aa 100644
--- a/drivers/mmc/host/sdhci-bcm-kona.c
+++ b/drivers/mmc/host/sdhci-bcm-kona.c
@@ -314,7 +314,7 @@ err_pltfm_free:
 	return ret;
-static int __exit sdhci_bcm_kona_remove(struct platform_device *pdev)
+static int sdhci_bcm_kona_remove(struct platform_device *pdev)
 	return sdhci_pltfm_unregister(pdev);

More information about the kernel-team mailing list