Newer
Older
netif_device_attach(ndev);
if (ax->resume_open)
ax_open(ndev);
return 0;
}
#else
#define ax_suspend NULL
#define ax_resume NULL
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
#endif
static struct platform_driver axdrv = {
.driver = {
.name = "ax88796",
.owner = THIS_MODULE,
},
.probe = ax_probe,
.remove = ax_remove,
.suspend = ax_suspend,
.resume = ax_resume,
};
static int __init axdrv_init(void)
{
return platform_driver_register(&axdrv);
}
static void __exit axdrv_exit(void)
{
platform_driver_unregister(&axdrv);
}
module_init(axdrv_init);
module_exit(axdrv_exit);
MODULE_DESCRIPTION("AX88796 10/100 Ethernet platform driver");
MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:ax88796");