diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 14:39:11 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-30 14:39:11 -0500 |
commit | a9524a76f70f3343e4be27f95a7e92a8ba5f9009 (patch) | |
tree | 00d2b6d02dfaa4796ad4bee51171aabe39b52dd8 /drivers/scsi/sata_sil24.c | |
parent | fbf30fbaa61595e9026f628f3913888b0df2b288 (diff) |
[libata] use dev_printk() throughout drivers
A few drivers were not following the standard meme of printing out
their driver name and version at module load time; this is fixed
as well.
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 4afe2b15b803..c66548025657 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> |
@@ -690,7 +691,7 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
690 | int i, rc; | 691 | int i, rc; |
691 | 692 | ||
692 | if (!printed_version++) | 693 | if (!printed_version++) |
693 | printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | 694 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); |
694 | 695 | ||
695 | rc = pci_enable_device(pdev); | 696 | rc = pci_enable_device(pdev); |
696 | if (rc) | 697 | if (rc) |
@@ -750,14 +751,14 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
750 | */ | 751 | */ |
751 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 752 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
752 | if (rc) { | 753 | if (rc) { |
753 | printk(KERN_ERR DRV_NAME "(%s): 32-bit DMA enable failed\n", | 754 | dev_printk(KERN_ERR, &pdev->dev, |
754 | pci_name(pdev)); | 755 | "32-bit DMA enable failed\n"); |
755 | goto out_free; | 756 | goto out_free; |
756 | } | 757 | } |
757 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 758 | rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); |
758 | if (rc) { | 759 | if (rc) { |
759 | printk(KERN_ERR DRV_NAME "(%s): 32-bit consistent DMA enable failed\n", | 760 | dev_printk(KERN_ERR, &pdev->dev, |
760 | pci_name(pdev)); | 761 | "32-bit consistent DMA enable failed\n"); |
761 | goto out_free; | 762 | goto out_free; |
762 | } | 763 | } |
763 | 764 | ||
@@ -793,9 +794,8 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
793 | break; | 794 | break; |
794 | } | 795 | } |
795 | if (tmp & PORT_CS_PORT_RST) | 796 | if (tmp & PORT_CS_PORT_RST) |
796 | printk(KERN_ERR DRV_NAME | 797 | dev_printk(KERN_ERR, &pdev->dev, |
797 | "(%s): failed to clear port RST\n", | 798 | "failed to clear port RST\n"); |
798 | pci_name(pdev)); | ||
799 | } | 799 | } |
800 | 800 | ||
801 | /* Zero error counters. */ | 801 | /* Zero error counters. */ |
@@ -824,9 +824,8 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
824 | 824 | ||
825 | /* Reset itself */ | 825 | /* Reset itself */ |
826 | if (__sil24_reset_controller(port)) | 826 | if (__sil24_reset_controller(port)) |
827 | printk(KERN_ERR DRV_NAME | 827 | dev_printk(KERN_ERR, &pdev->dev, |
828 | "(%s): failed to reset controller\n", | 828 | "failed to reset controller\n"); |
829 | pci_name(pdev)); | ||
830 | } | 829 | } |
831 | 830 | ||
832 | /* Turn on interrupts */ | 831 | /* Turn on interrupts */ |