Re: [PATCH] w1: Use module_pci_driver

2015-07-11 Thread Evgeniy Polyakov
Hi everyone Patch looks good to me, thank you Greg, please pull it into your tree Acked-by: Evgeniy Polyakov 07.07.2015, 09:55, "Vaishali Thakkar" : > Use module_pci_driver for drivers whose init and exit functions > only register and unregister, respectively. > Signed-off-by: Vaishali Thakkar

[PATCH] w1: Use module_pci_driver

2015-07-06 Thread Vaishali Thakkar
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