diff options
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 0267c22f8741..4c9fe733fe88 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -104,8 +104,7 @@ static struct sas_domain_function_template pm8001_transport_ops = { | |||
104 | *@pm8001_ha: our hba structure. | 104 | *@pm8001_ha: our hba structure. |
105 | *@phy_id: phy id. | 105 | *@phy_id: phy id. |
106 | */ | 106 | */ |
107 | static void __devinit pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, | 107 | static void pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, int phy_id) |
108 | int phy_id) | ||
109 | { | 108 | { |
110 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; | 109 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; |
111 | struct asd_sas_phy *sas_phy = &phy->sas_phy; | 110 | struct asd_sas_phy *sas_phy = &phy->sas_phy; |
@@ -195,7 +194,7 @@ static irqreturn_t pm8001_interrupt(int irq, void *opaque) | |||
195 | * @pm8001_ha:our hba structure. | 194 | * @pm8001_ha:our hba structure. |
196 | * | 195 | * |
197 | */ | 196 | */ |
198 | static int __devinit pm8001_alloc(struct pm8001_hba_info *pm8001_ha) | 197 | static int pm8001_alloc(struct pm8001_hba_info *pm8001_ha) |
199 | { | 198 | { |
200 | int i; | 199 | int i; |
201 | spin_lock_init(&pm8001_ha->lock); | 200 | spin_lock_init(&pm8001_ha->lock); |
@@ -360,8 +359,9 @@ static int pm8001_ioremap(struct pm8001_hba_info *pm8001_ha) | |||
360 | * @ent: ent | 359 | * @ent: ent |
361 | * @shost: scsi host struct which has been initialized before. | 360 | * @shost: scsi host struct which has been initialized before. |
362 | */ | 361 | */ |
363 | static struct pm8001_hba_info *__devinit | 362 | static struct pm8001_hba_info *pm8001_pci_alloc(struct pci_dev *pdev, |
364 | pm8001_pci_alloc(struct pci_dev *pdev, u32 chip_id, struct Scsi_Host *shost) | 363 | u32 chip_id, |
364 | struct Scsi_Host *shost) | ||
365 | { | 365 | { |
366 | struct pm8001_hba_info *pm8001_ha; | 366 | struct pm8001_hba_info *pm8001_ha; |
367 | struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); | 367 | struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); |
@@ -433,8 +433,8 @@ static int pci_go_44(struct pci_dev *pdev) | |||
433 | * @shost: scsi host which has been allocated outside. | 433 | * @shost: scsi host which has been allocated outside. |
434 | * @chip_info: our ha struct. | 434 | * @chip_info: our ha struct. |
435 | */ | 435 | */ |
436 | static int __devinit pm8001_prep_sas_ha_init(struct Scsi_Host * shost, | 436 | static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, |
437 | const struct pm8001_chip_info *chip_info) | 437 | const struct pm8001_chip_info *chip_info) |
438 | { | 438 | { |
439 | int phy_nr, port_nr; | 439 | int phy_nr, port_nr; |
440 | struct asd_sas_phy **arr_phy; | 440 | struct asd_sas_phy **arr_phy; |
@@ -479,8 +479,8 @@ exit: | |||
479 | * @shost: scsi host which has been allocated outside | 479 | * @shost: scsi host which has been allocated outside |
480 | * @chip_info: our ha struct. | 480 | * @chip_info: our ha struct. |
481 | */ | 481 | */ |
482 | static void __devinit pm8001_post_sas_ha_init(struct Scsi_Host *shost, | 482 | static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, |
483 | const struct pm8001_chip_info *chip_info) | 483 | const struct pm8001_chip_info *chip_info) |
484 | { | 484 | { |
485 | int i = 0; | 485 | int i = 0; |
486 | struct pm8001_hba_info *pm8001_ha; | 486 | struct pm8001_hba_info *pm8001_ha; |
@@ -615,8 +615,8 @@ intx: | |||
615 | * pci driver it is invoked, all struct an hardware initilization should be done | 615 | * pci driver it is invoked, all struct an hardware initilization should be done |
616 | * here, also, register interrupt | 616 | * here, also, register interrupt |
617 | */ | 617 | */ |
618 | static int __devinit pm8001_pci_probe(struct pci_dev *pdev, | 618 | static int pm8001_pci_probe(struct pci_dev *pdev, |
619 | const struct pci_device_id *ent) | 619 | const struct pci_device_id *ent) |
620 | { | 620 | { |
621 | unsigned int rc; | 621 | unsigned int rc; |
622 | u32 pci_reg; | 622 | u32 pci_reg; |
@@ -707,7 +707,7 @@ err_out_enable: | |||
707 | return rc; | 707 | return rc; |
708 | } | 708 | } |
709 | 709 | ||
710 | static void __devexit pm8001_pci_remove(struct pci_dev *pdev) | 710 | static void pm8001_pci_remove(struct pci_dev *pdev) |
711 | { | 711 | { |
712 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); | 712 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); |
713 | struct pm8001_hba_info *pm8001_ha; | 713 | struct pm8001_hba_info *pm8001_ha; |
@@ -842,7 +842,7 @@ err_out_enable: | |||
842 | return rc; | 842 | return rc; |
843 | } | 843 | } |
844 | 844 | ||
845 | static struct pci_device_id __devinitdata pm8001_pci_table[] = { | 845 | static struct pci_device_id pm8001_pci_table[] = { |
846 | { | 846 | { |
847 | PCI_VDEVICE(PMC_Sierra, 0x8001), chip_8001 | 847 | PCI_VDEVICE(PMC_Sierra, 0x8001), chip_8001 |
848 | }, | 848 | }, |
@@ -857,7 +857,7 @@ static struct pci_driver pm8001_pci_driver = { | |||
857 | .name = DRV_NAME, | 857 | .name = DRV_NAME, |
858 | .id_table = pm8001_pci_table, | 858 | .id_table = pm8001_pci_table, |
859 | .probe = pm8001_pci_probe, | 859 | .probe = pm8001_pci_probe, |
860 | .remove = __devexit_p(pm8001_pci_remove), | 860 | .remove = pm8001_pci_remove, |
861 | .suspend = pm8001_pci_suspend, | 861 | .suspend = pm8001_pci_suspend, |
862 | .resume = pm8001_pci_resume, | 862 | .resume = pm8001_pci_resume, |
863 | }; | 863 | }; |