diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:08:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:15 -0500 |
commit | 1e6d9abea73128cff1160624a8986570c48a095b (patch) | |
tree | 7fcc4286f545d509d6c1d0827a83616bb0bbad16 | |
parent | 27796aa0dce01661fedb5f3fa6b11db13f02a77f (diff) |
Drivers: infinband: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Tom Tucker <tom@opengridcomputing.com>
Cc: Steve Wise <swise@opengridcomputing.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Cc: Christoph Raisch <raisch@de.ibm.com>
Cc: Mike Marciniszyn <infinipath@intel.com>
Cc: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2.c | 7 | ||||
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2.h | 8 | ||||
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2_pd.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2_qp.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2_rnic.c | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 12 | ||||
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_main.c | 9 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 12 |
10 files changed, 33 insertions, 39 deletions
diff --git a/drivers/infiniband/hw/amso1100/c2.c b/drivers/infiniband/hw/amso1100/c2.c index 5ce7b9e8bff6..7275e727e0f5 100644 --- a/drivers/infiniband/hw/amso1100/c2.c +++ b/drivers/infiniband/hw/amso1100/c2.c | |||
@@ -920,8 +920,7 @@ static struct net_device *c2_devinit(struct c2_dev *c2dev, | |||
920 | return netdev; | 920 | return netdev; |
921 | } | 921 | } |
922 | 922 | ||
923 | static int __devinit c2_probe(struct pci_dev *pcidev, | 923 | static int c2_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) |
924 | const struct pci_device_id *ent) | ||
925 | { | 924 | { |
926 | int ret = 0, i; | 925 | int ret = 0, i; |
927 | unsigned long reg0_start, reg0_flags, reg0_len; | 926 | unsigned long reg0_start, reg0_flags, reg0_len; |
@@ -1191,7 +1190,7 @@ static int __devinit c2_probe(struct pci_dev *pcidev, | |||
1191 | return ret; | 1190 | return ret; |
1192 | } | 1191 | } |
1193 | 1192 | ||
1194 | static void __devexit c2_remove(struct pci_dev *pcidev) | 1193 | static void c2_remove(struct pci_dev *pcidev) |
1195 | { | 1194 | { |
1196 | struct c2_dev *c2dev = pci_get_drvdata(pcidev); | 1195 | struct c2_dev *c2dev = pci_get_drvdata(pcidev); |
1197 | struct net_device *netdev = c2dev->netdev; | 1196 | struct net_device *netdev = c2dev->netdev; |
@@ -1236,7 +1235,7 @@ static struct pci_driver c2_pci_driver = { | |||
1236 | .name = DRV_NAME, | 1235 | .name = DRV_NAME, |
1237 | .id_table = c2_pci_table, | 1236 | .id_table = c2_pci_table, |
1238 | .probe = c2_probe, | 1237 | .probe = c2_probe, |
1239 | .remove = __devexit_p(c2_remove), | 1238 | .remove = c2_remove, |
1240 | }; | 1239 | }; |
1241 | 1240 | ||
1242 | static int __init c2_init_module(void) | 1241 | static int __init c2_init_module(void) |
diff --git a/drivers/infiniband/hw/amso1100/c2.h b/drivers/infiniband/hw/amso1100/c2.h index 6ae698e68775..ba7a1208ff9e 100644 --- a/drivers/infiniband/hw/amso1100/c2.h +++ b/drivers/infiniband/hw/amso1100/c2.h | |||
@@ -498,16 +498,16 @@ extern int c2_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr, | |||
498 | struct ib_send_wr **bad_wr); | 498 | struct ib_send_wr **bad_wr); |
499 | extern int c2_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr, | 499 | extern int c2_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr, |
500 | struct ib_recv_wr **bad_wr); | 500 | struct ib_recv_wr **bad_wr); |
501 | extern void __devinit c2_init_qp_table(struct c2_dev *c2dev); | 501 | extern void c2_init_qp_table(struct c2_dev *c2dev); |
502 | extern void __devexit c2_cleanup_qp_table(struct c2_dev *c2dev); | 502 | extern void c2_cleanup_qp_table(struct c2_dev *c2dev); |
503 | extern void c2_set_qp_state(struct c2_qp *, int); | 503 | extern void c2_set_qp_state(struct c2_qp *, int); |
504 | extern struct c2_qp *c2_find_qpn(struct c2_dev *c2dev, int qpn); | 504 | extern struct c2_qp *c2_find_qpn(struct c2_dev *c2dev, int qpn); |
505 | 505 | ||
506 | /* PDs */ | 506 | /* PDs */ |
507 | extern int c2_pd_alloc(struct c2_dev *c2dev, int privileged, struct c2_pd *pd); | 507 | extern int c2_pd_alloc(struct c2_dev *c2dev, int privileged, struct c2_pd *pd); |
508 | extern void c2_pd_free(struct c2_dev *c2dev, struct c2_pd *pd); | 508 | extern void c2_pd_free(struct c2_dev *c2dev, struct c2_pd *pd); |
509 | extern int __devinit c2_init_pd_table(struct c2_dev *c2dev); | 509 | extern int c2_init_pd_table(struct c2_dev *c2dev); |
510 | extern void __devexit c2_cleanup_pd_table(struct c2_dev *c2dev); | 510 | extern void c2_cleanup_pd_table(struct c2_dev *c2dev); |
511 | 511 | ||
512 | /* CQs */ | 512 | /* CQs */ |
513 | extern int c2_init_cq(struct c2_dev *c2dev, int entries, | 513 | extern int c2_init_cq(struct c2_dev *c2dev, int entries, |
diff --git a/drivers/infiniband/hw/amso1100/c2_pd.c b/drivers/infiniband/hw/amso1100/c2_pd.c index 161f2a285351..f3e81dc357bb 100644 --- a/drivers/infiniband/hw/amso1100/c2_pd.c +++ b/drivers/infiniband/hw/amso1100/c2_pd.c | |||
@@ -70,7 +70,7 @@ void c2_pd_free(struct c2_dev *c2dev, struct c2_pd *pd) | |||
70 | spin_unlock(&c2dev->pd_table.lock); | 70 | spin_unlock(&c2dev->pd_table.lock); |
71 | } | 71 | } |
72 | 72 | ||
73 | int __devinit c2_init_pd_table(struct c2_dev *c2dev) | 73 | int c2_init_pd_table(struct c2_dev *c2dev) |
74 | { | 74 | { |
75 | 75 | ||
76 | c2dev->pd_table.last = 0; | 76 | c2dev->pd_table.last = 0; |
@@ -84,7 +84,7 @@ int __devinit c2_init_pd_table(struct c2_dev *c2dev) | |||
84 | return 0; | 84 | return 0; |
85 | } | 85 | } |
86 | 86 | ||
87 | void __devexit c2_cleanup_pd_table(struct c2_dev *c2dev) | 87 | void c2_cleanup_pd_table(struct c2_dev *c2dev) |
88 | { | 88 | { |
89 | kfree(c2dev->pd_table.table); | 89 | kfree(c2dev->pd_table.table); |
90 | } | 90 | } |
diff --git a/drivers/infiniband/hw/amso1100/c2_qp.c b/drivers/infiniband/hw/amso1100/c2_qp.c index 0d7b6f23caff..28cd5cb51859 100644 --- a/drivers/infiniband/hw/amso1100/c2_qp.c +++ b/drivers/infiniband/hw/amso1100/c2_qp.c | |||
@@ -1010,13 +1010,13 @@ out: | |||
1010 | return err; | 1010 | return err; |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | void __devinit c2_init_qp_table(struct c2_dev *c2dev) | 1013 | void c2_init_qp_table(struct c2_dev *c2dev) |
1014 | { | 1014 | { |
1015 | spin_lock_init(&c2dev->qp_table.lock); | 1015 | spin_lock_init(&c2dev->qp_table.lock); |
1016 | idr_init(&c2dev->qp_table.idr); | 1016 | idr_init(&c2dev->qp_table.idr); |
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | void __devexit c2_cleanup_qp_table(struct c2_dev *c2dev) | 1019 | void c2_cleanup_qp_table(struct c2_dev *c2dev) |
1020 | { | 1020 | { |
1021 | idr_destroy(&c2dev->qp_table.idr); | 1021 | idr_destroy(&c2dev->qp_table.idr); |
1022 | } | 1022 | } |
diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c b/drivers/infiniband/hw/amso1100/c2_rnic.c index e4a73158fc7f..b7c986990053 100644 --- a/drivers/infiniband/hw/amso1100/c2_rnic.c +++ b/drivers/infiniband/hw/amso1100/c2_rnic.c | |||
@@ -442,7 +442,7 @@ static int c2_rnic_close(struct c2_dev *c2dev) | |||
442 | * involves initializing the various limits and resource pools that | 442 | * involves initializing the various limits and resource pools that |
443 | * comprise the RNIC instance. | 443 | * comprise the RNIC instance. |
444 | */ | 444 | */ |
445 | int __devinit c2_rnic_init(struct c2_dev *c2dev) | 445 | int c2_rnic_init(struct c2_dev *c2dev) |
446 | { | 446 | { |
447 | int err; | 447 | int err; |
448 | u32 qsize, msgsize; | 448 | u32 qsize, msgsize; |
@@ -611,7 +611,7 @@ int __devinit c2_rnic_init(struct c2_dev *c2dev) | |||
611 | /* | 611 | /* |
612 | * Called by c2_remove to cleanup the RNIC resources. | 612 | * Called by c2_remove to cleanup the RNIC resources. |
613 | */ | 613 | */ |
614 | void __devexit c2_rnic_term(struct c2_dev *c2dev) | 614 | void c2_rnic_term(struct c2_dev *c2dev) |
615 | { | 615 | { |
616 | 616 | ||
617 | /* Close the open adapter instance */ | 617 | /* Close the open adapter instance */ |
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index 832e7a7d0aee..f8a62918a88d 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c | |||
@@ -713,8 +713,8 @@ static struct attribute_group ehca_dev_attr_grp = { | |||
713 | .attrs = ehca_dev_attrs | 713 | .attrs = ehca_dev_attrs |
714 | }; | 714 | }; |
715 | 715 | ||
716 | static int __devinit ehca_probe(struct platform_device *dev, | 716 | static int ehca_probe(struct platform_device *dev, |
717 | const struct of_device_id *id) | 717 | const struct of_device_id *id) |
718 | { | 718 | { |
719 | struct ehca_shca *shca; | 719 | struct ehca_shca *shca; |
720 | const u64 *handle; | 720 | const u64 *handle; |
@@ -879,7 +879,7 @@ probe1: | |||
879 | return -EINVAL; | 879 | return -EINVAL; |
880 | } | 880 | } |
881 | 881 | ||
882 | static int __devexit ehca_remove(struct platform_device *dev) | 882 | static int ehca_remove(struct platform_device *dev) |
883 | { | 883 | { |
884 | struct ehca_shca *shca = dev_get_drvdata(&dev->dev); | 884 | struct ehca_shca *shca = dev_get_drvdata(&dev->dev); |
885 | unsigned long flags; | 885 | unsigned long flags; |
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index bfca37b2432f..7b371f545ece 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -127,9 +127,8 @@ const char *ipath_ibcstatus_str[] = { | |||
127 | "LTState1C", "LTState1D", "LTState1E", "LTState1F" | 127 | "LTState1C", "LTState1D", "LTState1E", "LTState1F" |
128 | }; | 128 | }; |
129 | 129 | ||
130 | static void __devexit ipath_remove_one(struct pci_dev *); | 130 | static void ipath_remove_one(struct pci_dev *); |
131 | static int __devinit ipath_init_one(struct pci_dev *, | 131 | static int ipath_init_one(struct pci_dev *, const struct pci_device_id *); |
132 | const struct pci_device_id *); | ||
133 | 132 | ||
134 | /* Only needed for registration, nothing else needs this info */ | 133 | /* Only needed for registration, nothing else needs this info */ |
135 | #define PCI_VENDOR_ID_PATHSCALE 0x1fc1 | 134 | #define PCI_VENDOR_ID_PATHSCALE 0x1fc1 |
@@ -148,7 +147,7 @@ MODULE_DEVICE_TABLE(pci, ipath_pci_tbl); | |||
148 | static struct pci_driver ipath_driver = { | 147 | static struct pci_driver ipath_driver = { |
149 | .name = IPATH_DRV_NAME, | 148 | .name = IPATH_DRV_NAME, |
150 | .probe = ipath_init_one, | 149 | .probe = ipath_init_one, |
151 | .remove = __devexit_p(ipath_remove_one), | 150 | .remove = ipath_remove_one, |
152 | .id_table = ipath_pci_tbl, | 151 | .id_table = ipath_pci_tbl, |
153 | .driver = { | 152 | .driver = { |
154 | .groups = ipath_driver_attr_groups, | 153 | .groups = ipath_driver_attr_groups, |
@@ -392,8 +391,7 @@ done: | |||
392 | 391 | ||
393 | static void cleanup_device(struct ipath_devdata *dd); | 392 | static void cleanup_device(struct ipath_devdata *dd); |
394 | 393 | ||
395 | static int __devinit ipath_init_one(struct pci_dev *pdev, | 394 | static int ipath_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
396 | const struct pci_device_id *ent) | ||
397 | { | 395 | { |
398 | int ret, len, j; | 396 | int ret, len, j; |
399 | struct ipath_devdata *dd; | 397 | struct ipath_devdata *dd; |
@@ -737,7 +735,7 @@ static void cleanup_device(struct ipath_devdata *dd) | |||
737 | kfree(tmp); | 735 | kfree(tmp); |
738 | } | 736 | } |
739 | 737 | ||
740 | static void __devexit ipath_remove_one(struct pci_dev *pdev) | 738 | static void ipath_remove_one(struct pci_dev *pdev) |
741 | { | 739 | { |
742 | struct ipath_devdata *dd = pci_get_drvdata(pdev); | 740 | struct ipath_devdata *dd = pci_get_drvdata(pdev); |
743 | 741 | ||
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c index aa12a533ae9e..87897b95666d 100644 --- a/drivers/infiniband/hw/mthca/mthca_main.c +++ b/drivers/infiniband/hw/mthca/mthca_main.c | |||
@@ -130,7 +130,7 @@ static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); | |||
130 | module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); | 130 | module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); |
131 | MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)"); | 131 | MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)"); |
132 | 132 | ||
133 | static char mthca_version[] __devinitdata = | 133 | static char mthca_version[] = |
134 | DRV_NAME ": Mellanox InfiniBand HCA driver v" | 134 | DRV_NAME ": Mellanox InfiniBand HCA driver v" |
135 | DRV_VERSION " (" DRV_RELDATE ")\n"; | 135 | DRV_VERSION " (" DRV_RELDATE ")\n"; |
136 | 136 | ||
@@ -1139,8 +1139,7 @@ int __mthca_restart_one(struct pci_dev *pdev) | |||
1139 | return __mthca_init_one(pdev, hca_type); | 1139 | return __mthca_init_one(pdev, hca_type); |
1140 | } | 1140 | } |
1141 | 1141 | ||
1142 | static int __devinit mthca_init_one(struct pci_dev *pdev, | 1142 | static int mthca_init_one(struct pci_dev *pdev, const struct pci_device_id *id) |
1143 | const struct pci_device_id *id) | ||
1144 | { | 1143 | { |
1145 | int ret; | 1144 | int ret; |
1146 | 1145 | ||
@@ -1162,7 +1161,7 @@ static int __devinit mthca_init_one(struct pci_dev *pdev, | |||
1162 | return ret; | 1161 | return ret; |
1163 | } | 1162 | } |
1164 | 1163 | ||
1165 | static void __devexit mthca_remove_one(struct pci_dev *pdev) | 1164 | static void mthca_remove_one(struct pci_dev *pdev) |
1166 | { | 1165 | { |
1167 | mutex_lock(&mthca_device_mutex); | 1166 | mutex_lock(&mthca_device_mutex); |
1168 | __mthca_remove_one(pdev); | 1167 | __mthca_remove_one(pdev); |
@@ -1199,7 +1198,7 @@ static struct pci_driver mthca_driver = { | |||
1199 | .name = DRV_NAME, | 1198 | .name = DRV_NAME, |
1200 | .id_table = mthca_pci_table, | 1199 | .id_table = mthca_pci_table, |
1201 | .probe = mthca_init_one, | 1200 | .probe = mthca_init_one, |
1202 | .remove = __devexit_p(mthca_remove_one) | 1201 | .remove = mthca_remove_one, |
1203 | }; | 1202 | }; |
1204 | 1203 | ||
1205 | static void __init __mthca_check_profile_val(const char *name, int *pval, | 1204 | static void __init __mthca_check_profile_val(const char *name, int *pval, |
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index 748db2d3e465..5b152a366dff 100644 --- a/drivers/infiniband/hw/nes/nes.c +++ b/drivers/infiniband/hw/nes/nes.c | |||
@@ -444,7 +444,7 @@ static irqreturn_t nes_interrupt(int irq, void *dev_id) | |||
444 | /** | 444 | /** |
445 | * nes_probe - Device initialization | 445 | * nes_probe - Device initialization |
446 | */ | 446 | */ |
447 | static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) | 447 | static int nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) |
448 | { | 448 | { |
449 | struct net_device *netdev = NULL; | 449 | struct net_device *netdev = NULL; |
450 | struct nes_device *nesdev = NULL; | 450 | struct nes_device *nesdev = NULL; |
@@ -749,7 +749,7 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i | |||
749 | /** | 749 | /** |
750 | * nes_remove - unload from kernel | 750 | * nes_remove - unload from kernel |
751 | */ | 751 | */ |
752 | static void __devexit nes_remove(struct pci_dev *pcidev) | 752 | static void nes_remove(struct pci_dev *pcidev) |
753 | { | 753 | { |
754 | struct nes_device *nesdev = pci_get_drvdata(pcidev); | 754 | struct nes_device *nesdev = pci_get_drvdata(pcidev); |
755 | struct net_device *netdev; | 755 | struct net_device *netdev; |
@@ -810,7 +810,7 @@ static struct pci_driver nes_pci_driver = { | |||
810 | .name = DRV_NAME, | 810 | .name = DRV_NAME, |
811 | .id_table = nes_pci_table, | 811 | .id_table = nes_pci_table, |
812 | .probe = nes_probe, | 812 | .probe = nes_probe, |
813 | .remove = __devexit_p(nes_remove), | 813 | .remove = nes_remove, |
814 | }; | 814 | }; |
815 | 815 | ||
816 | static ssize_t nes_show_adapter(struct device_driver *ddp, char *buf) | 816 | static ssize_t nes_show_adapter(struct device_driver *ddp, char *buf) |
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index 4443adfcd9ee..ddf066d9abb6 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c | |||
@@ -1134,9 +1134,8 @@ void qib_disable_after_error(struct qib_devdata *dd) | |||
1134 | *dd->devstatusp |= QIB_STATUS_HWERROR; | 1134 | *dd->devstatusp |= QIB_STATUS_HWERROR; |
1135 | } | 1135 | } |
1136 | 1136 | ||
1137 | static void __devexit qib_remove_one(struct pci_dev *); | 1137 | static void qib_remove_one(struct pci_dev *); |
1138 | static int __devinit qib_init_one(struct pci_dev *, | 1138 | static int qib_init_one(struct pci_dev *, const struct pci_device_id *); |
1139 | const struct pci_device_id *); | ||
1140 | 1139 | ||
1141 | #define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: " | 1140 | #define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: " |
1142 | #define PFX QIB_DRV_NAME ": " | 1141 | #define PFX QIB_DRV_NAME ": " |
@@ -1153,7 +1152,7 @@ MODULE_DEVICE_TABLE(pci, qib_pci_tbl); | |||
1153 | struct pci_driver qib_driver = { | 1152 | struct pci_driver qib_driver = { |
1154 | .name = QIB_DRV_NAME, | 1153 | .name = QIB_DRV_NAME, |
1155 | .probe = qib_init_one, | 1154 | .probe = qib_init_one, |
1156 | .remove = __devexit_p(qib_remove_one), | 1155 | .remove = qib_remove_one, |
1157 | .id_table = qib_pci_tbl, | 1156 | .id_table = qib_pci_tbl, |
1158 | .err_handler = &qib_pci_err_handler, | 1157 | .err_handler = &qib_pci_err_handler, |
1159 | }; | 1158 | }; |
@@ -1342,8 +1341,7 @@ static void qib_postinit_cleanup(struct qib_devdata *dd) | |||
1342 | qib_free_devdata(dd); | 1341 | qib_free_devdata(dd); |
1343 | } | 1342 | } |
1344 | 1343 | ||
1345 | static int __devinit qib_init_one(struct pci_dev *pdev, | 1344 | static int qib_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
1346 | const struct pci_device_id *ent) | ||
1347 | { | 1345 | { |
1348 | int ret, j, pidx, initfail; | 1346 | int ret, j, pidx, initfail; |
1349 | struct qib_devdata *dd = NULL; | 1347 | struct qib_devdata *dd = NULL; |
@@ -1448,7 +1446,7 @@ bail: | |||
1448 | return ret; | 1446 | return ret; |
1449 | } | 1447 | } |
1450 | 1448 | ||
1451 | static void __devexit qib_remove_one(struct pci_dev *pdev) | 1449 | static void qib_remove_one(struct pci_dev *pdev) |
1452 | { | 1450 | { |
1453 | struct qib_devdata *dd = pci_get_drvdata(pdev); | 1451 | struct qib_devdata *dd = pci_get_drvdata(pdev); |
1454 | int ret; | 1452 | int ret; |