Vaishali Thakkar
e7390d7c52
w1: 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;
@@
-static e(...) { pci_unregister_driver(&x); }
@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 <vthakkar1994@gmail.com >
Acked-by: Evgeniy Polyakov <zbr@ioremap.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-08-05 13:48:20 -07:00
..
2015-07-16 23:47:19 +02:00
2015-07-24 16:54:59 -07:00
2015-06-10 22:46:34 -07:00
2015-08-05 13:36:49 -07:00
2015-07-09 11:20:01 -07:00
2015-07-22 13:30:20 -06:00
2015-07-14 22:54:55 +02:00
2015-06-26 11:54:29 -07:00
2015-08-05 13:30:16 -07:00
2015-07-17 16:39:53 -07:00
2015-07-07 10:44:45 +02:00
2015-07-16 23:47:19 +02:00
2015-07-09 22:59:49 +02:00
2015-07-08 15:14:13 +08:00
2015-07-17 16:39:53 -07:00
2015-07-03 12:10:12 -07:00
2015-06-12 17:01:42 -07:00
2015-07-21 09:52:51 +02:00
2015-07-18 10:27:12 -07:00
2015-07-24 14:27:44 +10:00
2015-07-08 12:40:23 +02:00
2015-07-02 10:25:22 -07:00
2015-08-05 11:46:44 -07:00
2015-07-03 14:39:06 +02:00
2015-07-01 16:15:05 +03:00
2015-08-05 13:30:15 -07:00
2015-07-09 22:25:54 +02:00
2015-07-01 10:49:25 -07:00
2015-07-19 14:54:45 +01:00
2015-07-21 09:42:54 +02:00
2015-07-24 16:33:11 -07:00
2015-07-23 14:17:39 +02:00
2015-07-18 10:27:12 -07:00
2015-07-15 17:24:45 -07:00
2015-07-01 19:09:11 -07:00
2015-06-22 17:59:09 -07:00
2015-06-15 16:42:37 +10:00
2015-07-02 10:36:29 -07:00
2015-08-05 10:35:49 -07:00
2015-07-21 09:42:54 +02:00
2015-07-06 05:33:17 -07:00
2015-06-30 19:44:57 -07:00
2015-06-13 08:44:14 -07:00
2015-07-17 16:39:53 -07:00
2015-08-05 13:44:24 -07:00
2015-07-24 10:18:39 +02:00
2015-07-01 10:49:25 -07:00
2015-07-22 14:45:25 -07:00
2015-08-03 17:30:00 -07:00
2015-07-04 14:09:32 -04:00
2015-07-25 09:57:56 -07:00
2015-08-05 13:44:24 -07:00
2015-07-01 19:40:18 -07:00
2015-07-25 12:48:05 -07:00
2015-07-01 15:19:35 -07:00
2015-07-02 10:25:22 -07:00
2015-07-15 20:02:09 +05:30
2015-07-21 15:27:27 -07:00
2015-07-14 11:02:44 -07:00
2015-07-06 23:52:21 +02:00
2015-07-02 10:42:13 -07:00
2015-06-23 13:32:38 -07:00
2015-06-23 14:08:54 -07:00
2015-07-24 16:19:25 +01:00
2015-06-18 11:44:41 +03:00
2015-08-05 10:35:49 -07:00
2015-07-23 13:07:04 -07:00
2015-07-23 13:07:04 -07:00
2015-07-01 15:19:35 -07:00
2015-07-02 14:40:49 -07:00
2015-07-24 16:19:50 +01:00
2015-08-05 12:27:09 -07:00
2015-06-09 16:38:06 +02:00
2015-08-05 10:35:49 -07:00
2015-07-04 14:13:43 -07:00
2015-07-01 10:49:25 -07:00
2015-07-23 18:08:29 -07:00
2015-08-05 13:25:59 -07:00
2015-07-22 14:49:42 -07:00
2015-06-28 12:32:13 -07:00
2015-08-05 10:35:49 -07:00
2015-08-05 11:41:31 -07:00
2015-07-03 16:02:25 -07:00
2015-06-12 17:31:05 -07:00
2015-08-05 13:48:20 -07:00
2015-08-05 10:35:49 -07:00
2015-07-04 14:13:43 -07:00
2015-08-05 13:43:12 -07:00
2015-08-05 13:43:12 -07:00