diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:24:34 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 20:24:34 -0500 |
commit | 95dbf5c4be080e94880ead13773d1a14eec8f4de (patch) | |
tree | 9113691b4b6c689989b4528ee0f3df3689c42066 /drivers/scsi/sata_sil24.c | |
parent | 054ee8fd39f1b5d50e803f126b63f400d631eea4 (diff) | |
parent | 6e9d6b8ee4e0c37d3952256e6472c57490d6780d (diff) |
Merge branch 'master'
Diffstat (limited to 'drivers/scsi/sata_sil24.c')
-rw-r--r-- | drivers/scsi/sata_sil24.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index 05ce84286aea..211ec7eebc9c 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/delay.h> | 35 | #include <linux/delay.h> |
36 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
37 | #include <linux/dma-mapping.h> | 37 | #include <linux/dma-mapping.h> |
38 | #include <linux/device.h> | ||
38 | #include <scsi/scsi_host.h> | 39 | #include <scsi/scsi_host.h> |
39 | #include "scsi.h" | 40 | #include "scsi.h" |
40 | #include <linux/libata.h> | 41 | #include <linux/libata.h> |
@@ -695,7 +696,7 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
695 | int i, rc; | 696 | int i, rc; |
696 | 697 | ||
697 | if (!printed_version++) | 698 | if (!printed_version++) |
698 | printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | 699 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); |
699 | 700 | ||
700 | rc = pci_enable_device(pdev); | 701 | rc = pci_enable_device(pdev); |
701 | if (rc) | 702 | if (rc) |
@@ -755,14 +756,14 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
755 | */ | 756 | */ |
756 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 757 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
757 | if (rc) { | 758 | if (rc) { |
758 | printk(KERN_ERR DRV_NAME "(%s): 32-bit DMA enable failed\n", | 759 | dev_printk(KERN_ERR, &pdev->dev, |
759 | pci_name(pdev)); | 760 | "32-bit DMA enable failed\n"); |
760 | goto out_free; | 761 | goto out_free; |
761 | } | 762 | } |
762 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 763 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); |
763 | if (rc) { | 764 | if (rc) { |
764 | printk(KERN_ERR DRV_NAME "(%s): 32-bit consistent DMA enable failed\n", | 765 | dev_printk(KERN_ERR, &pdev->dev, |
765 | pci_name(pdev)); | 766 | "32-bit consistent DMA enable failed\n"); |
766 | goto out_free; | 767 | goto out_free; |
767 | } | 768 | } |
768 | 769 | ||
@@ -798,9 +799,8 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
798 | break; | 799 | break; |
799 | } | 800 | } |
800 | if (tmp & PORT_CS_PORT_RST) | 801 | if (tmp & PORT_CS_PORT_RST) |
801 | printk(KERN_ERR DRV_NAME | 802 | dev_printk(KERN_ERR, &pdev->dev, |
802 | "(%s): failed to clear port RST\n", | 803 | "failed to clear port RST\n"); |
803 | pci_name(pdev)); | ||
804 | } | 804 | } |
805 | 805 | ||
806 | /* Zero error counters. */ | 806 | /* Zero error counters. */ |
@@ -829,9 +829,8 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
829 | 829 | ||
830 | /* Reset itself */ | 830 | /* Reset itself */ |
831 | if (__sil24_reset_controller(port)) | 831 | if (__sil24_reset_controller(port)) |
832 | printk(KERN_ERR DRV_NAME | 832 | dev_printk(KERN_ERR, &pdev->dev, |
833 | "(%s): failed to reset controller\n", | 833 | "failed to reset controller\n"); |
834 | pci_name(pdev)); | ||
835 | } | 834 | } |
836 | 835 | ||
837 | /* Turn on interrupts */ | 836 | /* Turn on interrupts */ |