提交 bea25e82 编写于 作者: P Paul Bolle 提交者: Roland Dreier

IB/qib: Make qib_driver static

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: NPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 4668e4b5
...@@ -89,7 +89,6 @@ struct qlogic_ib_stats { ...@@ -89,7 +89,6 @@ struct qlogic_ib_stats {
extern struct qlogic_ib_stats qib_stats; extern struct qlogic_ib_stats qib_stats;
extern const struct pci_error_handlers qib_pci_err_handler; extern const struct pci_error_handlers qib_pci_err_handler;
extern struct pci_driver qib_driver;
#define QIB_CHIP_SWVERSION QIB_CHIP_VERS_MAJ #define QIB_CHIP_SWVERSION QIB_CHIP_VERS_MAJ
/* /*
......
...@@ -1193,7 +1193,7 @@ static DEFINE_PCI_DEVICE_TABLE(qib_pci_tbl) = { ...@@ -1193,7 +1193,7 @@ static DEFINE_PCI_DEVICE_TABLE(qib_pci_tbl) = {
MODULE_DEVICE_TABLE(pci, 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, .name = QIB_DRV_NAME,
.probe = qib_init_one, .probe = qib_init_one,
.remove = qib_remove_one, .remove = qib_remove_one,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册