aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:08:40 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:15 -0500
commit1e6d9abea73128cff1160624a8986570c48a095b (patch)
tree7fcc4286f545d509d6c1d0827a83616bb0bbad16 /drivers/infiniband/hw/ipath
parent27796aa0dce01661fedb5f3fa6b11db13f02a77f (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/ipath')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c12
1 files changed, 5 insertions, 7 deletions
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
130static void __devexit ipath_remove_one(struct pci_dev *); 130static void ipath_remove_one(struct pci_dev *);
131static int __devinit ipath_init_one(struct pci_dev *, 131static 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);
148static struct pci_driver ipath_driver = { 147static 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
393static void cleanup_device(struct ipath_devdata *dd); 392static void cleanup_device(struct ipath_devdata *dd);
394 393
395static int __devinit ipath_init_one(struct pci_dev *pdev, 394static 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
740static void __devexit ipath_remove_one(struct pci_dev *pdev) 738static 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