IB/qib: Make qib_driver static
authorPaul Bolle <pebolle@tiscali.nl>
Wed, 7 Aug 2013 18:47:38 +0000 (20:47 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:14:51 +0000 (11:14 -0700)
struct pci_driver qib_driver is only used in qib_init.c.  Remove it
from qib.h and make it static in qib_init.c.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_init.c

index ae3e4feca7189699f4c8288024a1d2f3f1e3b531..1946101419a31c0c3066c72d90401639a474d3e3 100644 (file)
@@ -89,7 +89,6 @@ struct qlogic_ib_stats {
 
 extern struct qlogic_ib_stats qib_stats;
 extern const struct pci_error_handlers qib_pci_err_handler;
-extern struct pci_driver qib_driver;
 
 #define QIB_CHIP_SWVERSION QIB_CHIP_VERS_MAJ
 /*
index 36e048e0e1d93bca227707a2c5e569ec4a851a78..24e802f4ea2f04b4554678eee76341043801cd35 100644 (file)
@@ -1193,7 +1193,7 @@ static DEFINE_PCI_DEVICE_TABLE(qib_pci_tbl) = {
 
 MODULE_DEVICE_TABLE(pci, qib_pci_tbl);
 
-struct pci_driver qib_driver = {
+static struct pci_driver qib_driver = {
        .name = QIB_DRV_NAME,
        .probe = qib_init_one,
        .remove = qib_remove_one,