From: Russell King Date: Tue, 4 Mar 2014 21:25:51 +0000 (-0500) Subject: mmc: sdhci-bcm-kona: fix build errors when built-in X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4025ce24f326830135341814307c072f6c2a7738;p=openwrt%2Fstaging%2Fblogic.git mmc: sdhci-bcm-kona: fix build errors when built-in `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 Tested-by: Markus Mayer Acked-by: Matt Porter Cc: Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c index 923eefabf801..6f166e63b817 100644 --- a/drivers/mmc/host/sdhci-bcm-kona.c +++ b/drivers/mmc/host/sdhci-bcm-kona.c @@ -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);