netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 3/4] drivers/atm/he.c: convert to module_pci_driver
@ 2013-09-13 21:52 akpm
  2013-09-14  0:03 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2013-09-13 21:52 UTC (permalink / raw)
  To: davem; +Cc: netdev, akpm, clbchenlibo.chen, chas

From: Libo Chen <clbchenlibo.chen@huawei.com>
Subject: drivers/atm/he.c: convert to module_pci_driver

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/atm/he.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff -puN drivers/atm/he.c~drivers-atm-he-convert-to-module_pci_driver drivers/atm/he.c
--- a/drivers/atm/he.c~drivers-atm-he-convert-to-module_pci_driver
+++ a/drivers/atm/he.c
@@ -2872,15 +2872,4 @@ static struct pci_driver he_driver = {
 	.id_table =	he_pci_tbl,
 };
 
-static int __init he_init(void)
-{
-	return pci_register_driver(&he_driver);
-}
-
-static void __exit he_cleanup(void)
-{
-	pci_unregister_driver(&he_driver);
-}
-
-module_init(he_init);
-module_exit(he_cleanup);
+module_pci_driver(he_driver);
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-14  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 21:52 [patch 3/4] drivers/atm/he.c: convert to module_pci_driver akpm
2013-09-14  0:03 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).