net: mvneta: fix section mismatch warning caused by mvneta_deinit()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 19 Nov 2012 13:40:02 +0000 (14:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Nov 2012 22:14:34 +0000 (23:14 +0100)
mvneta_deinit() can be called from the ->probe() hook in the error
path, so it shouldn't be marked as __devexit. It fixes the following
section mismatch warning:

WARNING: vmlinux.o(.devinit.text+0x239c): Section mismatch in reference
from the function mvneta_probe() to the function .devexit.text:mvneta_deinit()
The function __devinit mvneta_probe() references
a function __devexit mvneta_deinit().

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/net/ethernet/marvell/mvneta.c

index 17b0a4198c882505974cad94766534c992804920..3f8086b9f5e5d9f1c1810a985b1777107195160c 100644 (file)
@@ -2606,7 +2606,7 @@ static int __devinit mvneta_init(struct mvneta_port *pp, int phy_addr)
        return 0;
 }
 
-static void __devexit mvneta_deinit(struct mvneta_port *pp)
+static void mvneta_deinit(struct mvneta_port *pp)
 {
        kfree(pp->txqs);
        kfree(pp->rxqs);
This page took 0.029412 seconds and 5 git commands to generate.