diff options
author | Sakthivel K <Sakthivel.SaravananKamalRaju@pmcs.com> | 2013-03-19 08:37:09 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-10 10:47:49 -0400 |
commit | a70b8fc3a582694073c3676dba6a39e4e77f8727 (patch) | |
tree | 91fe011a43bace7505e98ed651852b58403a1e47 /drivers/scsi/pm8001/pm8001_init.c | |
parent | 1c75a6796ea8b162863caf90b70d324ca481a181 (diff) |
[SCSI] pm80xx: Changed module name and debug messages update
Changed name in driver to pm80xx. Updated debug messages.
Signed-off-by: Sakthivel K <Sakthivel.SaravananKamalRaju@pmcs.com>
Signed-off-by: Anand Kumar S <AnandKumar.Santhanam@pmcs.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 64168eb97a7c..0c14dc04194b 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -741,7 +741,7 @@ static int pm8001_pci_probe(struct pci_dev *pdev, | |||
741 | const struct pm8001_chip_info *chip; | 741 | const struct pm8001_chip_info *chip; |
742 | 742 | ||
743 | dev_printk(KERN_INFO, &pdev->dev, | 743 | dev_printk(KERN_INFO, &pdev->dev, |
744 | "pm8001: driver version %s\n", DRV_VERSION); | 744 | "pm80xx: driver version %s\n", DRV_VERSION); |
745 | rc = pci_enable_device(pdev); | 745 | rc = pci_enable_device(pdev); |
746 | if (rc) | 746 | if (rc) |
747 | goto err_out_enable; | 747 | goto err_out_enable; |
@@ -789,15 +789,21 @@ static int pm8001_pci_probe(struct pci_dev *pdev, | |||
789 | list_add_tail(&pm8001_ha->list, &hba_list); | 789 | list_add_tail(&pm8001_ha->list, &hba_list); |
790 | PM8001_CHIP_DISP->chip_soft_rst(pm8001_ha); | 790 | PM8001_CHIP_DISP->chip_soft_rst(pm8001_ha); |
791 | rc = PM8001_CHIP_DISP->chip_init(pm8001_ha); | 791 | rc = PM8001_CHIP_DISP->chip_init(pm8001_ha); |
792 | if (rc) | 792 | if (rc) { |
793 | PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( | ||
794 | "chip_init failed [ret: %d]\n", rc)); | ||
793 | goto err_out_ha_free; | 795 | goto err_out_ha_free; |
796 | } | ||
794 | 797 | ||
795 | rc = scsi_add_host(shost, &pdev->dev); | 798 | rc = scsi_add_host(shost, &pdev->dev); |
796 | if (rc) | 799 | if (rc) |
797 | goto err_out_ha_free; | 800 | goto err_out_ha_free; |
798 | rc = pm8001_request_irq(pm8001_ha); | 801 | rc = pm8001_request_irq(pm8001_ha); |
799 | if (rc) | 802 | if (rc) { |
803 | PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( | ||
804 | "pm8001_request_irq failed [ret: %d]\n", rc)); | ||
800 | goto err_out_shost; | 805 | goto err_out_shost; |
806 | } | ||
801 | 807 | ||
802 | PM8001_CHIP_DISP->interrupt_enable(pm8001_ha, 0); | 808 | PM8001_CHIP_DISP->interrupt_enable(pm8001_ha, 0); |
803 | if (pm8001_ha->chip_id != chip_8001) { | 809 | if (pm8001_ha->chip_id != chip_8001) { |
@@ -1039,7 +1045,7 @@ static int __init pm8001_init(void) | |||
1039 | { | 1045 | { |
1040 | int rc = -ENOMEM; | 1046 | int rc = -ENOMEM; |
1041 | 1047 | ||
1042 | pm8001_wq = alloc_workqueue("pm8001", 0, 0); | 1048 | pm8001_wq = alloc_workqueue("pm80xx", 0, 0); |
1043 | if (!pm8001_wq) | 1049 | if (!pm8001_wq) |
1044 | goto err; | 1050 | goto err; |
1045 | 1051 | ||