diff options
| author | Vaishali Thakkar <[email protected]> | 2015-07-09 04:55:39 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-09 07:19:00 +0000 |
| commit | 910be1abbec9cac102fde8ab6dd68a9b410ca441 (patch) | |
| tree | 532213d0c28ad9d9a8ef84347c4cc8b8494d030b /net/ipv4/tcp_output.c | |
| parent | cxgb4vf: Fix check to use new User Doorbell mechanism (diff) | |
| download | kernel-910be1abbec9cac102fde8ab6dd68a9b410ca441.tar.gz kernel-910be1abbec9cac102fde8ab6dd68a9b410ca441.zip | |
neterion: s2io: Use module_pci_driver
Use module_pci_driver for drivers whose init and exit functions
only register and unregister, respectively.
A simplified version of the Coccinelle semantic patch that performs
this transformation is as follows:
@a@
identifier f, x;
@@
-static f(...) { return pci_register_driver(&x); }
@b depends on a@
identifier e, a.x;
statement S;
@@
-static e(...) {
-pci_unregister_driver(&x);
-DBG_PRINT(INIT_DBG,"S");
- }
@c depends on a && b@
identifier a.f;
declarer name module_init;
@@
-module_init(f);
@d depends on a && b && c@
identifier b.e, a.x;
declarer name module_exit;
declarer name module_pci_driver;
@@
-module_exit(e);
+module_pci_driver(x);
Signed-off-by: Vaishali Thakkar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
