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 /drivers/infiniband/hw/amso1100 | |
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>
Diffstat (limited to 'drivers/infiniband/hw/amso1100')
-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 |
5 files changed, 13 insertions, 14 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 */ |