Skip to content

Commit

Permalink
bfin_mac: fix error path
Browse files Browse the repository at this point in the history
While building blackfin defconfig we were getting a build warning:
warning: label 'out_err_irq_alloc' defined but not used.

Commit e7f4dc3 ("mdio: Move allocation of interrupts into core")
removed the label out_err_mdiobus_register but then mistakenly jumped to
out_err_alloc. But it was actually supposed to jump to out_err_irq_alloc.

Fixes: e7f4dc3 ("mdio: Move allocation of interrupts into core")
Cc: Andrew Lunn <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and davem330 committed Jan 11, 2016
1 parent 053842a commit fdffd2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/adi/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ static int bfin_mii_bus_probe(struct platform_device *pdev)
rc = mdiobus_register(miibus);
if (rc) {
dev_err(&pdev->dev, "Cannot register MDIO bus!\n");
goto out_err_alloc;
goto out_err_irq_alloc;
}

platform_set_drvdata(pdev, miibus);
Expand Down

0 comments on commit fdffd2e

Please sign in to comment.