diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-19 08:40:02 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-20 17:14:34 -0500 |
commit | 70eeaf98453191e5aede957c0c2ece05cf1a0f23 (patch) | |
tree | 676eed95640597d9c87d1ece74b57ddc1aacd26d /drivers/net/ethernet/marvell | |
parent | 189dd62642c9819005cf37d3a9e441d203112bd2 (diff) |
net: mvneta: fix section mismatch warning caused by mvneta_deinit()
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>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 17b0a4198c8..3f8086b9f5e 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c | |||
@@ -2606,7 +2606,7 @@ static int __devinit mvneta_init(struct mvneta_port *pp, int phy_addr) | |||
2606 | return 0; | 2606 | return 0; |
2607 | } | 2607 | } |
2608 | 2608 | ||
2609 | static void __devexit mvneta_deinit(struct mvneta_port *pp) | 2609 | static void mvneta_deinit(struct mvneta_port *pp) |
2610 | { | 2610 | { |
2611 | kfree(pp->txqs); | 2611 | kfree(pp->txqs); |
2612 | kfree(pp->rxqs); | 2612 | kfree(pp->rxqs); |