PrasannaKumar Muralidharan
ca75d601b5
miscdevice: Add helper macro for misc device boilerplate
...
Many modules call misc_register and misc_deregister in its module init
and exit methods without any additional code. This ends up being
boilerplate. This patch adds helper macro module_misc_device(), that
replaces module_init()/ module_exit() with template functions.
This patch also converts drivers to use new macro.
Change since v1:
Add device.h include in miscdevice.h as module_driver macro was not
available from other include files in some architectures.
Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-31 14:12:35 +02:00
..
2016-04-30 09:26:55 -07:00
2016-05-04 16:29:53 +02:00
2015-08-26 17:20:44 +02:00
2015-08-26 17:20:44 +02:00
2015-10-14 14:32:06 +02:00
2014-09-25 10:52:02 +02:00
2016-05-04 16:29:53 +02:00
2014-09-25 10:52:02 +02:00
2014-09-25 10:52:02 +02:00
2014-11-19 13:01:20 -05:00
2014-09-25 10:52:02 +02:00
2015-12-30 10:34:25 +01:00
2014-09-25 10:52:02 +02:00
2015-01-15 11:11:16 +01:00
2015-11-27 09:24:18 +01:00
2016-06-13 15:58:12 +02:00
2013-01-15 22:43:15 -08:00
2016-04-15 18:16:38 +02:00
2016-03-07 13:12:04 +01:00
2014-10-20 16:21:32 +02:00
2016-05-10 13:24:46 +02:00
2016-05-04 16:29:53 +02:00
2014-11-28 09:45:11 +01:00
2016-04-15 18:16:38 +02:00
2016-07-13 10:58:07 +02:00
2016-06-13 15:58:17 +02:00
2016-04-15 18:16:39 +02:00
2012-07-20 11:15:04 +02:00
2016-08-31 14:12:35 +02:00
2014-09-25 10:52:02 +02:00
2016-06-10 12:07:30 +02:00
2014-09-25 10:52:02 +02:00
2014-09-25 10:52:02 +02:00
2016-06-10 12:07:10 +02:00
2016-04-21 09:51:17 +02:00
2012-07-20 11:15:04 +02:00
2015-10-14 14:32:10 +02:00
2015-10-14 14:32:10 +02:00
2015-06-15 10:50:57 +02:00
2013-11-15 14:08:39 +01:00
2015-10-14 14:32:10 +02:00
2012-07-20 11:15:04 +02:00
2015-08-26 17:20:45 +02:00
2016-01-11 13:03:00 +01:00
2016-04-15 18:16:39 +02:00
2015-01-22 12:51:49 +01:00
2014-11-20 14:56:11 +01:00
2012-07-20 11:15:04 +02:00
2014-09-25 10:52:03 +02:00
2013-06-26 21:10:22 +02:00
2012-07-20 11:15:04 +02:00
2016-03-07 13:12:04 +01:00
2012-07-20 11:15:04 +02:00
2014-04-01 09:23:37 +02:00
2012-09-26 15:45:20 +02:00
2012-09-26 15:45:20 +02:00
2016-05-20 20:57:27 -07:00
2012-07-20 11:15:04 +02:00
2016-01-04 10:26:58 -05:00
2012-07-20 11:15:04 +02:00
2016-03-07 13:12:04 +01:00
2015-12-23 10:41:31 -05:00
2016-06-13 15:58:26 +02:00