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>
Cette révision appartient à :
@@ -127,9 +127,8 @@ const char *ipath_ibcstatus_str[] = {
|
||||
"LTState1C", "LTState1D", "LTState1E", "LTState1F"
|
||||
};
|
||||
|
||||
static void __devexit ipath_remove_one(struct pci_dev *);
|
||||
static int __devinit ipath_init_one(struct pci_dev *,
|
||||
const struct pci_device_id *);
|
||||
static void ipath_remove_one(struct pci_dev *);
|
||||
static int ipath_init_one(struct pci_dev *, const struct pci_device_id *);
|
||||
|
||||
/* Only needed for registration, nothing else needs this info */
|
||||
#define PCI_VENDOR_ID_PATHSCALE 0x1fc1
|
||||
@@ -148,7 +147,7 @@ MODULE_DEVICE_TABLE(pci, ipath_pci_tbl);
|
||||
static struct pci_driver ipath_driver = {
|
||||
.name = IPATH_DRV_NAME,
|
||||
.probe = ipath_init_one,
|
||||
.remove = __devexit_p(ipath_remove_one),
|
||||
.remove = ipath_remove_one,
|
||||
.id_table = ipath_pci_tbl,
|
||||
.driver = {
|
||||
.groups = ipath_driver_attr_groups,
|
||||
@@ -392,8 +391,7 @@ done:
|
||||
|
||||
static void cleanup_device(struct ipath_devdata *dd);
|
||||
|
||||
static int __devinit ipath_init_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int ipath_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
int ret, len, j;
|
||||
struct ipath_devdata *dd;
|
||||
@@ -737,7 +735,7 @@ static void cleanup_device(struct ipath_devdata *dd)
|
||||
kfree(tmp);
|
||||
}
|
||||
|
||||
static void __devexit ipath_remove_one(struct pci_dev *pdev)
|
||||
static void ipath_remove_one(struct pci_dev *pdev)
|
||||
{
|
||||
struct ipath_devdata *dd = pci_get_drvdata(pdev);
|
||||
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur