提交 31d60ebf 编写于 作者: P Peter Hüwe 提交者: David S. Miller

net/ethernet/dec/tulip/xircom_cb: Use module_pci_driver to register driver

Removing some boilerplate by using module_pci_driver instead of calling
register and unregister in the otherwise empty init/exit functions.
Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
Reviewed-by: NGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 52a58f9d
......@@ -1171,16 +1171,4 @@ investigate_write_descriptor(struct net_device *dev,
}
}
static int __init xircom_init(void)
{
return pci_register_driver(&xircom_ops);
}
static void __exit xircom_exit(void)
{
pci_unregister_driver(&xircom_ops);
}
module_init(xircom_init)
module_exit(xircom_exit)
module_pci_driver(xircom_ops);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册