linux_old1/drivers/w1/masters
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
..
Kconfig w1: mxc_w1: Enable driver compilation with COMPILE_TEST 2014-02-28 15:27:09 -08:00
Makefile w1: add 1-wire master driver for i.MX27 / i.MX31 2009-01-08 08:31:13 -08:00
ds1wm.c w1/masters: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
ds2482.c w1: Drop owner assignment from i2c_driver 2015-08-05 13:48:20 -07:00
ds2490.c W1: ds2490: Increase timeout when waiting for status 2014-11-07 11:24:01 -08:00
matrox_w1.c w1: Use module_pci_driver 2015-08-05 13:48:20 -07:00
mxc_w1.c w1: constify of_device_id array 2015-03-25 12:25:29 +01:00
omap_hdq.c w1: constify of_device_id array 2015-03-25 12:25:29 +01:00
w1-gpio.c w1: constify of_device_id array 2015-03-25 12:25:29 +01:00