Re: [PATCH] mtd: denali: Use module_pci_driver

2015-08-18 Thread Vaishali Thakkar
On Wed, Aug 19, 2015 at 6:02 AM, Brian Norris wrote: > > On Tue, Jul 07, 2015 at 12:53:45PM +0530, Vaishali Thakkar wrote: > > Use module_pci_driver for drivers whose init and exit functions > > only register and unregister, respectively. > > > > A simplified version of the Coccinelle semantic pat

Re: [PATCH] mtd: denali: Use module_pci_driver

2015-08-18 Thread Brian Norris
On Tue, Jul 07, 2015 at 12:53:45PM +0530, Vaishali Thakkar wrote: > 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@ >

Re: [PATCH] mtd: denali: Use module_pci_driver()

2015-08-18 Thread Brian Norris
On Tue, Jul 07, 2015 at 10:54:03PM -0700, Rajat Jain wrote: > Use module_pci_driver, since init and exit functions only register > and unregister the pci driver, respectively. > > Signed-off-by: Rajat Jain > Signed-off-by: Rajat Jain I pushed an identical patch to l2-mtd.git from another author

[PATCH] mtd: denali: Use module_pci_driver()

2015-07-07 Thread Rajat Jain
Use module_pci_driver, since init and exit functions only register and unregister the pci driver, respectively. Signed-off-by: Rajat Jain Signed-off-by: Rajat Jain --- drivers/mtd/nand/denali_pci.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/mtd/nand

[PATCH] mtd: denali: Use module_pci_driver

2015-07-07 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