Commit 39b9b780 authored by Rosen Penev's avatar Rosen Penev Committed by Jakub Kicinski

net: ibm: emac: get rid of wol_irq

This is completely unused.
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20240912024903.6201-10-rosenp@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c092d0be
...@@ -3029,9 +3029,8 @@ static int emac_probe(struct platform_device *ofdev) ...@@ -3029,9 +3029,8 @@ static int emac_probe(struct platform_device *ofdev)
if (err) if (err)
goto err_gone; 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->emac_irq = irq_of_parse_and_map(np, 0);
dev->wol_irq = irq_of_parse_and_map(np, 1);
if (!dev->emac_irq) { if (!dev->emac_irq) {
printk(KERN_ERR "%pOF: Can't map main interrupt\n", np); printk(KERN_ERR "%pOF: Can't map main interrupt\n", np);
err = -ENODEV; err = -ENODEV;
...@@ -3055,13 +3054,13 @@ static int emac_probe(struct platform_device *ofdev) ...@@ -3055,13 +3054,13 @@ static int emac_probe(struct platform_device *ofdev)
if (!dev->emacp) { if (!dev->emacp) {
dev_err(&ofdev->dev, "can't map device registers"); dev_err(&ofdev->dev, "can't map device registers");
err = -ENOMEM; err = -ENOMEM;
goto err_irq_unmap; goto err_gone;
} }
/* Wait for dependent devices */ /* Wait for dependent devices */
err = emac_wait_deps(dev); err = emac_wait_deps(dev);
if (err) if (err)
goto err_irq_unmap; goto err_gone;
dev->mal = platform_get_drvdata(dev->mal_dev); dev->mal = platform_get_drvdata(dev->mal_dev);
if (dev->mdio_dev != NULL) if (dev->mdio_dev != NULL)
dev->mdio_instance = platform_get_drvdata(dev->mdio_dev); dev->mdio_instance = platform_get_drvdata(dev->mdio_dev);
...@@ -3189,9 +3188,6 @@ static int emac_probe(struct platform_device *ofdev) ...@@ -3189,9 +3188,6 @@ static int emac_probe(struct platform_device *ofdev)
mal_unregister_commac(dev->mal, &dev->commac); mal_unregister_commac(dev->mal, &dev->commac);
err_rel_deps: err_rel_deps:
emac_put_deps(dev); emac_put_deps(dev);
err_irq_unmap:
if (dev->wol_irq)
irq_dispose_mapping(dev->wol_irq);
err_gone: err_gone:
if (blist) if (blist)
*blist = NULL; *blist = NULL;
...@@ -3218,9 +3214,6 @@ static void emac_remove(struct platform_device *ofdev) ...@@ -3218,9 +3214,6 @@ static void emac_remove(struct platform_device *ofdev)
mal_unregister_commac(dev->mal, &dev->commac); mal_unregister_commac(dev->mal, &dev->commac);
emac_put_deps(dev); emac_put_deps(dev);
if (dev->wol_irq)
irq_dispose_mapping(dev->wol_irq);
} }
/* XXX Features in here should be replaced by properties... */ /* XXX Features in here should be replaced by properties... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment