mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
net: ibm: emac: use platform_get_irq
No need for irq_of_parse_and_map since we have platform_device. Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
c9bf90863d
commit
a598f66d91
|
|
@ -3031,15 +3031,8 @@ static int emac_probe(struct platform_device *ofdev)
|
|||
if (err)
|
||||
goto err_gone;
|
||||
|
||||
/* Get interrupts. EMAC irq is mandatory */
|
||||
dev->emac_irq = irq_of_parse_and_map(np, 0);
|
||||
if (!dev->emac_irq) {
|
||||
printk(KERN_ERR "%pOF: Can't map main interrupt\n", np);
|
||||
err = -ENODEV;
|
||||
goto err_gone;
|
||||
}
|
||||
|
||||
/* Setup error IRQ handler */
|
||||
dev->emac_irq = platform_get_irq(ofdev, 0);
|
||||
err = devm_request_irq(&ofdev->dev, dev->emac_irq, emac_irq, 0, "EMAC",
|
||||
dev);
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user