return 0;
-err:
+ err:
return err;
}
return 0;
-err:
+ err:
ag71xx_rings_cleanup(ag);
return ret;
}
return 0;
-err_drop:
+ err_drop:
dev->stats.tx_dropped++;
dev_kfree_skb(skb);
return 0;
-err_unregister_netdev:
+ err_unregister_netdev:
unregister_netdev(dev);
-err_free_irq:
+ err_free_irq:
free_irq(dev->irq, dev);
-err_unmap_mii_ctrl:
+ err_unmap_mii_ctrl:
iounmap(ag->mii_ctrl);
-err_unmap_base2:
+ err_unmap_base2:
iounmap(ag->mac_base2);
-err_unmap_base1:
+ err_unmap_base1:
iounmap(ag->mac_base);
-err_free_dev:
+ err_free_dev:
kfree(dev);
-err_out:
+ err_out:
platform_set_drvdata(pdev, NULL);
return err;
}
return 0;
-err_mdio_exit:
+ err_mdio_exit:
ag71xx_mdio_driver_exit();
-err_out:
+ err_out:
return ret;
}
DBG("mii_read: addr=%04x, reg=%04x, value=%04x\n", addr, reg, ret);
-out:
+ out:
return ret;
}
ag71xx_mdio_bus = am;
return 0;
-err_iounmap:
+ err_iounmap:
iounmap(am->mdio_base);
-err_free_mdio:
+ err_free_mdio:
kfree(am);
-err_out:
+ err_out:
return err;
}