]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
cxgb4vf: fix up "Section Mismatch" compiler warning.
authorCasey Leedom <leedom@chelsio.com>
Thu, 11 Nov 2010 09:30:42 +0000 (09:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2010 17:17:37 +0000 (09:17 -0800)
Fix up "Section Mismatch" compiler warning and mark another routine as
__devinit.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4vf/cxgb4vf_main.c

index 47417d4003719ebf3317de827cf5d0c50816bb1d..4cf530ac149d5cd138f63c18fa967525b056e072 100644 (file)
@@ -2032,7 +2032,7 @@ static int __devinit setup_debugfs(struct adapter *adapter)
  * Tear down the /sys/kernel/debug/cxgb4vf sub-nodes created above.  We leave
  * it to our caller to tear down the directory (debugfs_root).
  */
-static void __devexit cleanup_debugfs(struct adapter *adapter)
+static void cleanup_debugfs(struct adapter *adapter)
 {
        BUG_ON(adapter->debugfs_root == NULL);
 
@@ -2050,7 +2050,7 @@ static void __devexit cleanup_debugfs(struct adapter *adapter)
  * adapter parameters we're going to be using and initialize basic adapter
  * hardware support.
  */
-static int adap_init0(struct adapter *adapter)
+static int __devinit adap_init0(struct adapter *adapter)
 {
        struct vf_resources *vfres = &adapter->params.vfres;
        struct sge_params *sge_params = &adapter->params.sge;