|
@@ -4487,13 +4487,16 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
|
|
wol_default = device_may_wakeup(&pdev->dev) ? WAKE_MAGIC : 0;
|
|
wol_default = device_may_wakeup(&pdev->dev) ? WAKE_MAGIC : 0;
|
|
|
|
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
- hw = kzalloc(sizeof(*hw), GFP_KERNEL);
|
|
|
|
|
|
+
|
|
|
|
+ hw = kzalloc(sizeof(*hw) + strlen(DRV_NAME "@pci:")
|
|
|
|
+ + strlen(pci_name(pdev)) + 1, GFP_KERNEL);
|
|
if (!hw) {
|
|
if (!hw) {
|
|
dev_err(&pdev->dev, "cannot allocate hardware struct\n");
|
|
dev_err(&pdev->dev, "cannot allocate hardware struct\n");
|
|
goto err_out_free_regions;
|
|
goto err_out_free_regions;
|
|
}
|
|
}
|
|
|
|
|
|
hw->pdev = pdev;
|
|
hw->pdev = pdev;
|
|
|
|
+ sprintf(hw->irq_name, DRV_NAME "@pci:%s", pci_name(pdev));
|
|
|
|
|
|
hw->regs = ioremap_nocache(pci_resource_start(pdev, 0), 0x4000);
|
|
hw->regs = ioremap_nocache(pci_resource_start(pdev, 0), 0x4000);
|
|
if (!hw->regs) {
|
|
if (!hw->regs) {
|
|
@@ -4539,7 +4542,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
|
|
|
|
|
|
err = request_irq(pdev->irq, sky2_intr,
|
|
err = request_irq(pdev->irq, sky2_intr,
|
|
(hw->flags & SKY2_HW_USE_MSI) ? 0 : IRQF_SHARED,
|
|
(hw->flags & SKY2_HW_USE_MSI) ? 0 : IRQF_SHARED,
|
|
- dev->name, hw);
|
|
|
|
|
|
+ hw->irq_name, hw);
|
|
if (err) {
|
|
if (err) {
|
|
dev_err(&pdev->dev, "cannot assign irq %d\n", pdev->irq);
|
|
dev_err(&pdev->dev, "cannot assign irq %d\n", pdev->irq);
|
|
goto err_out_unregister;
|
|
goto err_out_unregister;
|