Skip to content

Commit 47b1ea7

Browse files
committed
Drivers: message: 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: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com> Cc: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1da42fb commit 47b1ea7

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎drivers/message/fusion/mptfc.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static int mptfc_slave_alloc(struct scsi_device *sdev);
100100
static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt);
101101
static void mptfc_target_destroy(struct scsi_target *starget);
102102
static void mptfc_set_rport_loss_tmo(struct fc_rport *rport, uint32_t timeout);
103-
static void __devexit mptfc_remove(struct pci_dev *pdev);
103+
static void mptfc_remove(struct pci_dev *pdev);
104104
static int mptfc_abort(struct scsi_cmnd *SCpnt);
105105
static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
106106
static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
@@ -1360,7 +1360,7 @@ static struct pci_driver mptfc_driver = {
13601360
.name = "mptfc",
13611361
.id_table = mptfc_pci_table,
13621362
.probe = mptfc_probe,
1363-
.remove = __devexit_p(mptfc_remove),
1363+
.remove = mptfc_remove,
13641364
.shutdown = mptscsih_shutdown,
13651365
#ifdef CONFIG_PM
13661366
.suspend = mptscsih_suspend,
@@ -1496,8 +1496,7 @@ mptfc_init(void)
14961496
* @pdev: Pointer to pci_dev structure
14971497
*
14981498
*/
1499-
static void __devexit
1500-
mptfc_remove(struct pci_dev *pdev)
1499+
static void mptfc_remove(struct pci_dev *pdev)
15011500
{
15021501
MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
15031502
struct mptfc_rport_info *p, *n;

‎drivers/message/fusion/mptsas.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,7 +5332,7 @@ mptsas_shutdown(struct pci_dev *pdev)
53325332
mptsas_cleanup_fw_event_q(ioc);
53335333
}
53345334

5335-
static void __devexit mptsas_remove(struct pci_dev *pdev)
5335+
static void mptsas_remove(struct pci_dev *pdev)
53365336
{
53375337
MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
53385338
struct mptsas_portinfo *p, *n;
@@ -5387,7 +5387,7 @@ static struct pci_driver mptsas_driver = {
53875387
.name = "mptsas",
53885388
.id_table = mptsas_pci_table,
53895389
.probe = mptsas_probe,
5390-
.remove = __devexit_p(mptsas_remove),
5390+
.remove = mptsas_remove,
53915391
.shutdown = mptsas_shutdown,
53925392
#ifdef CONFIG_PM
53935393
.suspend = mptscsih_suspend,

‎drivers/message/fusion/mptspi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ static struct pci_driver mptspi_driver = {
15501550
.name = "mptspi",
15511551
.id_table = mptspi_pci_table,
15521552
.probe = mptspi_probe,
1553-
.remove = __devexit_p(mptscsih_remove),
1553+
.remove = mptscsih_remove,
15541554
.shutdown = mptscsih_shutdown,
15551555
#ifdef CONFIG_PM
15561556
.suspend = mptscsih_suspend,

‎drivers/message/i2o/pci.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define OSM_DESCRIPTION "I2O-subsystem"
3838

3939
/* PCI device id table for all I2O controllers */
40-
static struct pci_device_id __devinitdata i2o_pci_ids[] = {
40+
static struct pci_device_id i2o_pci_ids[] = {
4141
{PCI_DEVICE_CLASS(PCI_CLASS_INTELLIGENT_I2O << 8, 0xffff00)},
4242
{PCI_DEVICE(PCI_VENDOR_ID_DPT, 0xa511)},
4343
{.vendor = PCI_VENDOR_ID_INTEL,.device = 0x1962,
@@ -84,7 +84,7 @@ static void i2o_pci_free(struct i2o_controller *c)
8484
*
8585
* Returns 0 on success or negative error code on failure.
8686
*/
87-
static int __devinit i2o_pci_alloc(struct i2o_controller *c)
87+
static int i2o_pci_alloc(struct i2o_controller *c)
8888
{
8989
struct pci_dev *pdev = c->pdev;
9090
struct device *dev = &pdev->dev;
@@ -315,8 +315,7 @@ static void i2o_pci_irq_disable(struct i2o_controller *c)
315315
*
316316
* Returns 0 on success or negative error code on failure.
317317
*/
318-
static int __devinit i2o_pci_probe(struct pci_dev *pdev,
319-
const struct pci_device_id *id)
318+
static int i2o_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
320319
{
321320
struct i2o_controller *c;
322321
int rc;
@@ -453,7 +452,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
453452
* Reset the I2O controller, disable interrupts and remove all allocated
454453
* resources.
455454
*/
456-
static void __devexit i2o_pci_remove(struct pci_dev *pdev)
455+
static void i2o_pci_remove(struct pci_dev *pdev)
457456
{
458457
struct i2o_controller *c;
459458
c = pci_get_drvdata(pdev);
@@ -474,7 +473,7 @@ static struct pci_driver i2o_pci_driver = {
474473
.name = "PCI_I2O",
475474
.id_table = i2o_pci_ids,
476475
.probe = i2o_pci_probe,
477-
.remove = __devexit_p(i2o_pci_remove),
476+
.remove = i2o_pci_remove,
478477
};
479478

480479
/**

0 commit comments

Comments
 (0)