meth.c (e98bdb3059cbf2b1cd4261e126b08429f64466c3) meth.c (be12502e2e64854dbe0a2ddff6d26ec1143d6890)
1/*
2 * meth.c -- O2 Builtin 10/100 Ethernet driver
3 *
4 * Copyright (C) 2001-2003 Ilya Volynets
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

849 return err;
850 }
851
852 printk(KERN_INFO "%s: SGI MACE Ethernet rev. %d\n",
853 dev->name, (unsigned int)(mace->eth.mac_ctrl >> 29));
854 return 0;
855}
856
1/*
2 * meth.c -- O2 Builtin 10/100 Ethernet driver
3 *
4 * Copyright (C) 2001-2003 Ilya Volynets
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

849 return err;
850 }
851
852 printk(KERN_INFO "%s: SGI MACE Ethernet rev. %d\n",
853 dev->name, (unsigned int)(mace->eth.mac_ctrl >> 29));
854 return 0;
855}
856
857static int __exit meth_remove(struct platform_device *pdev)
857static int meth_remove(struct platform_device *pdev)
858{
859 struct net_device *dev = platform_get_drvdata(pdev);
860
861 unregister_netdev(dev);
862 free_netdev(dev);
863
864 return 0;
865}
866
867static struct platform_driver meth_driver = {
868 .probe = meth_probe,
858{
859 struct net_device *dev = platform_get_drvdata(pdev);
860
861 unregister_netdev(dev);
862 free_netdev(dev);
863
864 return 0;
865}
866
867static struct platform_driver meth_driver = {
868 .probe = meth_probe,
869 .remove = __exit_p(meth_remove),
869 .remove = meth_remove,
870 .driver = {
871 .name = "meth",
872 }
873};
874
875module_platform_driver(meth_driver);
876
877MODULE_AUTHOR("Ilya Volynets <ilya@theIlya.com>");
878MODULE_DESCRIPTION("SGI O2 Builtin Fast Ethernet driver");
879MODULE_LICENSE("GPL");
880MODULE_ALIAS("platform:meth");
870 .driver = {
871 .name = "meth",
872 }
873};
874
875module_platform_driver(meth_driver);
876
877MODULE_AUTHOR("Ilya Volynets <ilya@theIlya.com>");
878MODULE_DESCRIPTION("SGI O2 Builtin Fast Ethernet driver");
879MODULE_LICENSE("GPL");
880MODULE_ALIAS("platform:meth");