Commit 571703ff authored by Minghao Chi's avatar Minghao Chi Committed by Jakub Kicinski

net: mv643xx_eth: undo some opreations in mv643xx_eth_probe

Cannot directly return platform_get_irq return irq, there
are operations that need to be undone.

Fixes: bf2b8342 ("net: mv643xx_eth: use platform_get_irq() instead of platform_get_resource()")
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220316012444.2126070-1-chi.minghao@zte.com.cnSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f4034430
......@@ -3189,8 +3189,10 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (WARN_ON(irq < 0))
return irq;
if (WARN_ON(irq < 0)) {
err = irq;
goto out;
}
dev->irq = irq;
dev->netdev_ops = &mv643xx_eth_netdev_ops;
......
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