aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 20:02:20 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 20:02:20 -0500
commit46a8494a9de6b88a126993e6012322752f997b88 (patch)
tree7556eb5660b512851ca3bf9340e5387fbf5947dd
parent99da1a8a6dc549630733e1cc246265d282fc214e (diff)
3c523: fix warning in drivers/net/3c523.c
fix warning: drivers/net/3c523.c:582: warning: ‘cleanup_card’ defined but not used No code changed: md5: ebe4a1b27d3f21b0b12a78c58463b0d7 3c523.o.before.asm ebe4a1b27d3f21b0b12a78c58463b0d7 3c523.o.after.asm Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/3c523.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c
index 59ea2910bcac..d9c9481a59a5 100644
--- a/drivers/net/3c523.c
+++ b/drivers/net/3c523.c
@@ -576,14 +576,14 @@ err_out:
576 return retval; 576 return retval;
577} 577}
578 578
579#ifdef MODULE
579static void cleanup_card(struct net_device *dev) 580static void cleanup_card(struct net_device *dev)
580{ 581{
581 mca_set_adapter_procfn(((struct priv *)netdev_priv(dev))->slot, 582 mca_set_adapter_procfn(((struct priv *)netdev_priv(dev))->slot,
582 NULL, NULL); 583 NULL, NULL);
583 release_region(dev->base_addr, ELMC_IO_EXTENT); 584 release_region(dev->base_addr, ELMC_IO_EXTENT);
584} 585}
585 586#else
586#ifndef MODULE
587struct net_device * __init elmc_probe(int unit) 587struct net_device * __init elmc_probe(int unit)
588{ 588{
589 struct net_device *dev = alloc_etherdev(sizeof(struct priv)); 589 struct net_device *dev = alloc_etherdev(sizeof(struct priv));