ftgmac100.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) ftgmac100.c (be12502e2e64854dbe0a2ddff6d26ec1143d6890)
1/*
2 * Faraday FTGMAC100 Gigabit Ethernet
3 *
4 * (C) Copyright 2009-2011 Faraday Technology
5 * Po-Yu Chuang <ratbert@faraday-tech.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 1442 unchanged lines hidden (view full) ---

1451 release_resource(priv->res);
1452err_req_mem:
1453 netif_napi_del(&priv->napi);
1454 free_netdev(netdev);
1455err_alloc_etherdev:
1456 return err;
1457}
1458
1/*
2 * Faraday FTGMAC100 Gigabit Ethernet
3 *
4 * (C) Copyright 2009-2011 Faraday Technology
5 * Po-Yu Chuang <ratbert@faraday-tech.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 1442 unchanged lines hidden (view full) ---

1451 release_resource(priv->res);
1452err_req_mem:
1453 netif_napi_del(&priv->napi);
1454 free_netdev(netdev);
1455err_alloc_etherdev:
1456 return err;
1457}
1458
1459static int __exit ftgmac100_remove(struct platform_device *pdev)
1459static int ftgmac100_remove(struct platform_device *pdev)
1460{
1461 struct net_device *netdev;
1462 struct ftgmac100 *priv;
1463
1464 netdev = platform_get_drvdata(pdev);
1465 priv = netdev_priv(netdev);
1466
1467 unregister_netdev(netdev);

--- 10 unchanged lines hidden (view full) ---

1478static const struct of_device_id ftgmac100_of_match[] = {
1479 { .compatible = "faraday,ftgmac100" },
1480 { }
1481};
1482MODULE_DEVICE_TABLE(of, ftgmac100_of_match);
1483
1484static struct platform_driver ftgmac100_driver = {
1485 .probe = ftgmac100_probe,
1460{
1461 struct net_device *netdev;
1462 struct ftgmac100 *priv;
1463
1464 netdev = platform_get_drvdata(pdev);
1465 priv = netdev_priv(netdev);
1466
1467 unregister_netdev(netdev);

--- 10 unchanged lines hidden (view full) ---

1478static const struct of_device_id ftgmac100_of_match[] = {
1479 { .compatible = "faraday,ftgmac100" },
1480 { }
1481};
1482MODULE_DEVICE_TABLE(of, ftgmac100_of_match);
1483
1484static struct platform_driver ftgmac100_driver = {
1485 .probe = ftgmac100_probe,
1486 .remove = __exit_p(ftgmac100_remove),
1486 .remove = ftgmac100_remove,
1487 .driver = {
1488 .name = DRV_NAME,
1489 .of_match_table = ftgmac100_of_match,
1490 },
1491};
1492module_platform_driver(ftgmac100_driver);
1493
1494MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
1495MODULE_DESCRIPTION("FTGMAC100 driver");
1496MODULE_LICENSE("GPL");
1487 .driver = {
1488 .name = DRV_NAME,
1489 .of_match_table = ftgmac100_of_match,
1490 },
1491};
1492module_platform_driver(ftgmac100_driver);
1493
1494MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
1495MODULE_DESCRIPTION("FTGMAC100 driver");
1496MODULE_LICENSE("GPL");