Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76914
b: refs/heads/master
c: 35a10a8
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 23, 2008
1 parent 0754b1f commit f3df8a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 723159c58371b860cf6ef38affd19d16290e4898
refs/heads/master: 35a10a80daa04b7316d6bac1b1402cc347c35b1e
12 changes: 7 additions & 5 deletions trunk/drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ int ata_pci_init_bmdma(struct ata_host *host)
return rc;

/* request and iomap DMA region */
rc = pcim_iomap_regions(pdev, 1 << 4, DRV_NAME);
rc = pcim_iomap_regions(pdev, 1 << 4, dev_driver_string(gdev));
if (rc) {
dev_printk(KERN_ERR, gdev, "failed to request/iomap BAR4\n");
return -ENOMEM;
Expand Down Expand Up @@ -621,7 +621,8 @@ int ata_pci_init_sff_host(struct ata_host *host)
continue;
}

rc = pcim_iomap_regions(pdev, 0x3 << base, DRV_NAME);
rc = pcim_iomap_regions(pdev, 0x3 << base,
dev_driver_string(gdev));
if (rc) {
dev_printk(KERN_WARNING, gdev,
"failed to request/iomap BARs for port %d "
Expand Down Expand Up @@ -741,6 +742,7 @@ int ata_pci_init_one(struct pci_dev *pdev,
struct device *dev = &pdev->dev;
const struct ata_port_info *pi = NULL;
struct ata_host *host = NULL;
const char *drv_name = dev_driver_string(&pdev->dev);
u8 mask;
int legacy_mode = 0;
int i, rc;
Expand Down Expand Up @@ -813,7 +815,7 @@ int ata_pci_init_one(struct pci_dev *pdev,
shouldn't happen on a sane system but robustness is cheap
in this case */
rc = devm_request_irq(dev, pdev->irq, pi->port_ops->irq_handler,
IRQF_SHARED, DRV_NAME, host);
IRQF_SHARED, drv_name, host);
if (rc)
goto err_out;

Expand All @@ -823,7 +825,7 @@ int ata_pci_init_one(struct pci_dev *pdev,
if (!ata_port_is_dummy(host->ports[0])) {
rc = devm_request_irq(dev, ATA_PRIMARY_IRQ(pdev),
pi->port_ops->irq_handler,
IRQF_SHARED, DRV_NAME, host);
IRQF_SHARED, drv_name, host);
if (rc)
goto err_out;

Expand All @@ -834,7 +836,7 @@ int ata_pci_init_one(struct pci_dev *pdev,
if (!ata_port_is_dummy(host->ports[1])) {
rc = devm_request_irq(dev, ATA_SECONDARY_IRQ(pdev),
pi->port_ops->irq_handler,
IRQF_SHARED, DRV_NAME, host);
IRQF_SHARED, drv_name, host);
if (rc)
goto err_out;

Expand Down

0 comments on commit f3df8a5

Please sign in to comment.