linux/drivers/staging/most
Shraddha Barke 8668984f81 Staging: most: Use module_platform_driver
Use module_platform_driver for drivers whose init and exit functions
only register and unregister, respectively. Thus remove some
boilerplate code.

A simplified version of Coccinelle patch -

@a@
identifier f, x;
@@
-static f(...) { return platform_driver_register(&x); }
@b depends on a@
identifier e, a.x;
@@
-static e(...) { platform_driver_unregister(&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_platform_driver;
@@
-module_exit(e);
+module_platform_driver(x);

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 09:37:23 +01:00
..
aim-cdev staging: most: add poll syscall to AIM cdev 2015-09-29 03:18:53 +02:00
aim-network staging: most: add fair buffer distribution 2015-09-29 03:18:51 +02:00
aim-sound staging: most: fix pcm_write input/output error 2015-09-29 03:18:53 +02:00
aim-v4l2 staging: most: fix channel operation in multi-aim context 2015-09-29 03:18:49 +02:00
Documentation Staging: most: add MOST driver's documentation 2015-07-24 13:50:43 -07:00
hdm-dim2 Staging: most: Use module_platform_driver 2015-10-04 09:37:23 +01:00
hdm-i2c Staging: most: Use module_i2c_driver 2015-09-29 15:20:35 +02:00
hdm-usb staging: most: consolidate code 2015-09-29 03:18:50 +02:00
mostcore staging: most: add poll syscall to AIM cdev 2015-09-29 03:18:53 +02:00
Kconfig Staging: most: MOST and MOSTCORE should depend on HAS_DMA 2015-09-13 09:24:44 -07:00
Makefile Staging: most: add MOST driver's hdm-usb module 2015-07-24 13:50:43 -07:00
TODO