diff options
author | Tejun Heo <htejun@gmail.com> | 2008-01-04 04:42:21 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-01-23 05:24:15 -0500 |
commit | 35a10a80daa04b7316d6bac1b1402cc347c35b1e (patch) | |
tree | b62c64999bfb646ed8881eca3fae4bcbf6402506 /drivers/ata/libata-sff.c | |
parent | 723159c58371b860cf6ef38affd19d16290e4898 (diff) |
libata: use dev_driver_string() instead of "libata" in libata-sff.c
libata-sff code used DRV_NAME which is hardcoded to "libata" when
requesting resources. Use dev_driver_string() such that low level
driver names are used in resource listing.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index edeb4bea586c..97dd8f2796b7 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -551,7 +551,7 @@ int ata_pci_init_bmdma(struct ata_host *host) | |||
551 | return rc; | 551 | return rc; |
552 | 552 | ||
553 | /* request and iomap DMA region */ | 553 | /* request and iomap DMA region */ |
554 | rc = pcim_iomap_regions(pdev, 1 << 4, DRV_NAME); | 554 | rc = pcim_iomap_regions(pdev, 1 << 4, dev_driver_string(gdev)); |
555 | if (rc) { | 555 | if (rc) { |
556 | dev_printk(KERN_ERR, gdev, "failed to request/iomap BAR4\n"); | 556 | dev_printk(KERN_ERR, gdev, "failed to request/iomap BAR4\n"); |
557 | return -ENOMEM; | 557 | return -ENOMEM; |
@@ -621,7 +621,8 @@ int ata_pci_init_sff_host(struct ata_host *host) | |||
621 | continue; | 621 | continue; |
622 | } | 622 | } |
623 | 623 | ||
624 | rc = pcim_iomap_regions(pdev, 0x3 << base, DRV_NAME); | 624 | rc = pcim_iomap_regions(pdev, 0x3 << base, |
625 | dev_driver_string(gdev)); | ||
625 | if (rc) { | 626 | if (rc) { |
626 | dev_printk(KERN_WARNING, gdev, | 627 | dev_printk(KERN_WARNING, gdev, |
627 | "failed to request/iomap BARs for port %d " | 628 | "failed to request/iomap BARs for port %d " |
@@ -741,6 +742,7 @@ int ata_pci_init_one(struct pci_dev *pdev, | |||
741 | struct device *dev = &pdev->dev; | 742 | struct device *dev = &pdev->dev; |
742 | const struct ata_port_info *pi = NULL; | 743 | const struct ata_port_info *pi = NULL; |
743 | struct ata_host *host = NULL; | 744 | struct ata_host *host = NULL; |
745 | const char *drv_name = dev_driver_string(&pdev->dev); | ||
744 | u8 mask; | 746 | u8 mask; |
745 | int legacy_mode = 0; | 747 | int legacy_mode = 0; |
746 | int i, rc; | 748 | int i, rc; |
@@ -813,7 +815,7 @@ int ata_pci_init_one(struct pci_dev *pdev, | |||
813 | shouldn't happen on a sane system but robustness is cheap | 815 | shouldn't happen on a sane system but robustness is cheap |
814 | in this case */ | 816 | in this case */ |
815 | rc = devm_request_irq(dev, pdev->irq, pi->port_ops->irq_handler, | 817 | rc = devm_request_irq(dev, pdev->irq, pi->port_ops->irq_handler, |
816 | IRQF_SHARED, DRV_NAME, host); | 818 | IRQF_SHARED, drv_name, host); |
817 | if (rc) | 819 | if (rc) |
818 | goto err_out; | 820 | goto err_out; |
819 | 821 | ||
@@ -823,7 +825,7 @@ int ata_pci_init_one(struct pci_dev *pdev, | |||
823 | if (!ata_port_is_dummy(host->ports[0])) { | 825 | if (!ata_port_is_dummy(host->ports[0])) { |
824 | rc = devm_request_irq(dev, ATA_PRIMARY_IRQ(pdev), | 826 | rc = devm_request_irq(dev, ATA_PRIMARY_IRQ(pdev), |
825 | pi->port_ops->irq_handler, | 827 | pi->port_ops->irq_handler, |
826 | IRQF_SHARED, DRV_NAME, host); | 828 | IRQF_SHARED, drv_name, host); |
827 | if (rc) | 829 | if (rc) |
828 | goto err_out; | 830 | goto err_out; |
829 | 831 | ||
@@ -834,7 +836,7 @@ int ata_pci_init_one(struct pci_dev *pdev, | |||
834 | if (!ata_port_is_dummy(host->ports[1])) { | 836 | if (!ata_port_is_dummy(host->ports[1])) { |
835 | rc = devm_request_irq(dev, ATA_SECONDARY_IRQ(pdev), | 837 | rc = devm_request_irq(dev, ATA_SECONDARY_IRQ(pdev), |
836 | pi->port_ops->irq_handler, | 838 | pi->port_ops->irq_handler, |
837 | IRQF_SHARED, DRV_NAME, host); | 839 | IRQF_SHARED, drv_name, host); |
838 | if (rc) | 840 | if (rc) |
839 | goto err_out; | 841 | goto err_out; |
840 | 842 | ||