aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas/mv_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mvsas/mv_init.c')
-rw-r--r--drivers/scsi/mvsas/mv_init.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index cc59dff3810..ce90d0546cd 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -96,7 +96,7 @@ static struct sas_domain_function_template mvs_transport_ops = {
96 96
97}; 97};
98 98
99static void __devinit mvs_phy_init(struct mvs_info *mvi, int phy_id) 99static void mvs_phy_init(struct mvs_info *mvi, int phy_id)
100{ 100{
101 struct mvs_phy *phy = &mvi->phy[phy_id]; 101 struct mvs_phy *phy = &mvi->phy[phy_id];
102 struct asd_sas_phy *sas_phy = &phy->sas_phy; 102 struct asd_sas_phy *sas_phy = &phy->sas_phy;
@@ -235,7 +235,7 @@ static irqreturn_t mvs_interrupt(int irq, void *opaque)
235 return IRQ_HANDLED; 235 return IRQ_HANDLED;
236} 236}
237 237
238static int __devinit mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) 238static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost)
239{ 239{
240 int i = 0, slot_nr; 240 int i = 0, slot_nr;
241 char pool_name[32]; 241 char pool_name[32];
@@ -373,7 +373,7 @@ void mvs_iounmap(void __iomem *regs)
373 iounmap(regs); 373 iounmap(regs);
374} 374}
375 375
376static struct mvs_info *__devinit mvs_pci_alloc(struct pci_dev *pdev, 376static struct mvs_info *mvs_pci_alloc(struct pci_dev *pdev,
377 const struct pci_device_id *ent, 377 const struct pci_device_id *ent,
378 struct Scsi_Host *shost, unsigned int id) 378 struct Scsi_Host *shost, unsigned int id)
379{ 379{
@@ -444,7 +444,7 @@ static int pci_go_64(struct pci_dev *pdev)
444 return rc; 444 return rc;
445} 445}
446 446
447static int __devinit mvs_prep_sas_ha_init(struct Scsi_Host *shost, 447static int mvs_prep_sas_ha_init(struct Scsi_Host *shost,
448 const struct mvs_chip_info *chip_info) 448 const struct mvs_chip_info *chip_info)
449{ 449{
450 int phy_nr, port_nr; unsigned short core_nr; 450 int phy_nr, port_nr; unsigned short core_nr;
@@ -486,7 +486,7 @@ exit_free:
486 486
487} 487}
488 488
489static void __devinit mvs_post_sas_ha_init(struct Scsi_Host *shost, 489static void mvs_post_sas_ha_init(struct Scsi_Host *shost,
490 const struct mvs_chip_info *chip_info) 490 const struct mvs_chip_info *chip_info)
491{ 491{
492 int can_queue, i = 0, j = 0; 492 int can_queue, i = 0, j = 0;
@@ -537,8 +537,7 @@ static void mvs_init_sas_add(struct mvs_info *mvi)
537 memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE); 537 memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE);
538} 538}
539 539
540static int __devinit mvs_pci_init(struct pci_dev *pdev, 540static int mvs_pci_init(struct pci_dev *pdev, const struct pci_device_id *ent)
541 const struct pci_device_id *ent)
542{ 541{
543 unsigned int rc, nhost = 0; 542 unsigned int rc, nhost = 0;
544 struct mvs_info *mvi; 543 struct mvs_info *mvi;
@@ -645,7 +644,7 @@ err_out_enable:
645 return rc; 644 return rc;
646} 645}
647 646
648static void __devexit mvs_pci_remove(struct pci_dev *pdev) 647static void mvs_pci_remove(struct pci_dev *pdev)
649{ 648{
650 unsigned short core_nr, i = 0; 649 unsigned short core_nr, i = 0;
651 struct sas_ha_struct *sha = pci_get_drvdata(pdev); 650 struct sas_ha_struct *sha = pci_get_drvdata(pdev);
@@ -677,7 +676,7 @@ static void __devexit mvs_pci_remove(struct pci_dev *pdev)
677 return; 676 return;
678} 677}
679 678
680static struct pci_device_id __devinitdata mvs_pci_table[] = { 679static struct pci_device_id mvs_pci_table[] = {
681 { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 }, 680 { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 },
682 { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 }, 681 { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 },
683 { 682 {
@@ -748,7 +747,7 @@ static struct pci_driver mvs_pci_driver = {
748 .name = DRV_NAME, 747 .name = DRV_NAME,
749 .id_table = mvs_pci_table, 748 .id_table = mvs_pci_table,
750 .probe = mvs_pci_init, 749 .probe = mvs_pci_init,
751 .remove = __devexit_p(mvs_pci_remove), 750 .remove = mvs_pci_remove,
752}; 751};
753 752
754static ssize_t 753static ssize_t