Skip to content

Commit

Permalink
net: ibm: emac: get rid of wol_irq
Browse files Browse the repository at this point in the history
This is completely unused.

Signed-off-by: Rosen Penev <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
neheb authored and kuba-moo committed Sep 14, 2024
1 parent c092d0b commit 39b9b78
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions drivers/net/ethernet/ibm/emac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3029,9 +3029,8 @@ static int emac_probe(struct platform_device *ofdev)
if (err)
goto err_gone;

/* Get interrupts. EMAC irq is mandatory, WOL irq is optional */
/* Get interrupts. EMAC irq is mandatory */
dev->emac_irq = irq_of_parse_and_map(np, 0);
dev->wol_irq = irq_of_parse_and_map(np, 1);
if (!dev->emac_irq) {
printk(KERN_ERR "%pOF: Can't map main interrupt\n", np);
err = -ENODEV;
Expand All @@ -3055,13 +3054,13 @@ static int emac_probe(struct platform_device *ofdev)
if (!dev->emacp) {
dev_err(&ofdev->dev, "can't map device registers");
err = -ENOMEM;
goto err_irq_unmap;
goto err_gone;
}

/* Wait for dependent devices */
err = emac_wait_deps(dev);
if (err)
goto err_irq_unmap;
goto err_gone;
dev->mal = platform_get_drvdata(dev->mal_dev);
if (dev->mdio_dev != NULL)
dev->mdio_instance = platform_get_drvdata(dev->mdio_dev);
Expand Down Expand Up @@ -3189,9 +3188,6 @@ static int emac_probe(struct platform_device *ofdev)
mal_unregister_commac(dev->mal, &dev->commac);
err_rel_deps:
emac_put_deps(dev);
err_irq_unmap:
if (dev->wol_irq)
irq_dispose_mapping(dev->wol_irq);
err_gone:
if (blist)
*blist = NULL;
Expand All @@ -3218,9 +3214,6 @@ static void emac_remove(struct platform_device *ofdev)

mal_unregister_commac(dev->mal, &dev->commac);
emac_put_deps(dev);

if (dev->wol_irq)
irq_dispose_mapping(dev->wol_irq);
}

/* XXX Features in here should be replaced by properties... */
Expand Down

0 comments on commit 39b9b78

Please sign in to comment.