mmc: sdhci-bcm-kona: fix build errors when built-in
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 4 Mar 2014 21:25:51 +0000 (16:25 -0500)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 21:27:23 +0000 (16:27 -0500)
`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@arm.linux.org.uk>
Tested-by: Markus Mayer <markus.mayer@linaro.org>
Acked-by: Matt Porter <mporter@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-bcm-kona.c

index 923eefabf801e7a5adcb9e35eb05086546f08c66..6f166e63b8172fd5484796584cb36c8291410aeb 100644 (file)
@@ -336,7 +336,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)
 {
        struct sdhci_host *host = platform_get_drvdata(pdev);
        struct sdhci_pltfm_host *pltfm_priv = sdhci_priv(host);