Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166722
b: refs/heads/master
c: 415e69e
h: refs/heads/master
v: v3
  • Loading branch information
Michal Schmidt authored and David S. Miller committed Oct 1, 2009
1 parent 4018cfb commit 4f83c45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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: 89e95a613c8a045ce0c5b992ba19f10613f6ab2f
refs/heads/master: 415e69e6574ab740e5db56152055eb899e7ac86e
7 changes: 5 additions & 2 deletions trunk/drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3935,11 +3935,14 @@ static int __devinit skge_probe(struct pci_dev *pdev,
#endif

err = -ENOMEM;
hw = kzalloc(sizeof(*hw), GFP_KERNEL);
/* space for skge@pci:0000:04:00.0 */
hw = kzalloc(sizeof(*hw) + strlen(DRV_NAME "@pci:" )
+ strlen(pci_name(pdev)) + 1, GFP_KERNEL);
if (!hw) {
dev_err(&pdev->dev, "cannot allocate hardware struct\n");
goto err_out_free_regions;
}
sprintf(hw->irq_name, DRV_NAME "@pci:%s", pci_name(pdev));

hw->pdev = pdev;
spin_lock_init(&hw->hw_lock);
Expand Down Expand Up @@ -3974,7 +3977,7 @@ static int __devinit skge_probe(struct pci_dev *pdev,
goto err_out_free_netdev;
}

err = request_irq(pdev->irq, skge_intr, IRQF_SHARED, dev->name, hw);
err = request_irq(pdev->irq, skge_intr, IRQF_SHARED, hw->irq_name, hw);
if (err) {
dev_err(&pdev->dev, "%s: cannot assign irq %d\n",
dev->name, pdev->irq);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/skge.h
Original file line number Diff line number Diff line change
Expand Up @@ -2423,6 +2423,8 @@ struct skge_hw {
u16 phy_addr;
spinlock_t phy_lock;
struct tasklet_struct phy_task;

char irq_name[0]; /* skge@pci:000:04:00.0 */
};

enum pause_control {
Expand Down

0 comments on commit 4f83c45

Please sign in to comment.