aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_init.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:08:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit6f039790510fd630ff348efe8c4802dbaa041fba (patch)
treebf99ab35c78f689a40f3057537209be5f7ca88d6 /drivers/scsi/pm8001/pm8001_init.c
parent48c68c4f1b542444f175a9e136febcecf3e704d8 (diff)
Drivers: scsi: 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, __devinitconst, 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: Adam Radford <linuxraid@lsi.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r--drivers/scsi/pm8001/pm8001_init.c28
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 */
107static void __devinit pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, 107static 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 */
198static int __devinit pm8001_alloc(struct pm8001_hba_info *pm8001_ha) 197static 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 */
363static struct pm8001_hba_info *__devinit 362static struct pm8001_hba_info *pm8001_pci_alloc(struct pci_dev *pdev,
364pm8001_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 */
436static int __devinit pm8001_prep_sas_ha_init(struct Scsi_Host * shost, 436static 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 */
482static void __devinit pm8001_post_sas_ha_init(struct Scsi_Host *shost, 482static 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 */
618static int __devinit pm8001_pci_probe(struct pci_dev *pdev, 618static 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
710static void __devexit pm8001_pci_remove(struct pci_dev *pdev) 710static 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
845static struct pci_device_id __devinitdata pm8001_pci_table[] = { 845static 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};