From: Fabio Estevam Date: Tue, 12 Mar 2013 23:53:37 +0000 (-0300) Subject: dma: ipu: ipu_idmac: Fix section mismatch X-Git-Tag: next-20130404~73^2~1^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=afc05d7ddcf5b9bd8bc09cacbae44ca1d119c52d;p=karo-tx-linux.git dma: ipu: ipu_idmac: Fix section mismatch Since commit 84c1e63c12 (dma: Remove erroneous __exit and __exit_p() references) the following section mismatch happens: WARNING: drivers/built-in.o(.text+0x20f94): Section mismatch in reference from the function ipu_remove() to the function .exit.text:ipu_idmac_exit() The function ipu_remove() references a function in an exit section. Often the function ipu_idmac_exit() has valid usage outside the exit section and the fix is to remove the __exit annotation of ipu_idmac_exit. Remove the '__exit' annotation from ipu_idmac_exit in order to fix it. Signed-off-by: Fabio Estevam Acked-by: Maxin B. John Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index d6d5d7eb3414..d39c2cd0795d 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c @@ -1642,7 +1642,7 @@ static int __init ipu_idmac_init(struct ipu *ipu) return dma_async_device_register(&idmac->dma); } -static void __exit ipu_idmac_exit(struct ipu *ipu) +static void ipu_idmac_exit(struct ipu *ipu) { int i; struct idmac *idmac = &ipu->idmac;