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-06-21 13:07:15 +02:00
2016-06-24 10:21:39 +02:00
2013-07-31 10:12:28 +02:00
2016-06-23 08:56:36 +02:00
2016-07-11 17:41:31 +02:00
2015-11-05 09:51:50 -08:00
2016-04-04 09:59:21 +02:00
2015-10-21 13:15:53 +02:00
2013-11-12 19:06:23 +01:00
2013-01-03 10:27:31 +01:00
2014-12-22 15:00:25 +01:00
2014-08-21 10:43:28 -05:00
2015-07-29 14:12:26 +02:00
2016-03-02 10:31:36 +01:00
2016-07-28 10:49:23 +02:00
2016-02-23 14:21:19 +01:00
2016-01-17 12:32:01 -08:00
2015-06-18 11:00:42 +02:00
2015-11-27 00:02:59 +01:00
2016-01-29 17:12:31 +01:00
2015-10-21 13:15:53 +02:00
2016-06-01 14:08:17 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2015-08-18 15:03:43 +02:00
2013-01-03 10:27:31 +01:00
2015-11-05 10:15:35 -08:00
2015-12-28 13:41:44 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2014-09-08 09:48:56 +02:00
2013-08-05 11:29:57 +02:00
2015-01-26 14:25:41 +01:00
2013-04-24 16:32:27 +02:00
2016-07-28 10:49:23 +02:00
2016-01-14 16:11:06 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-02-17 13:13:45 +01:00
2013-01-03 10:27:31 +01:00
2016-07-08 12:36:03 +02:00
2016-03-29 15:39:36 +02:00
2013-10-09 12:06:02 +02:00
2013-09-13 15:12:39 +02:00
2015-12-28 13:41:44 +01:00
2015-05-07 16:27:07 +02:00
2016-02-10 11:31:10 +01:00
2015-02-18 21:14:54 +01:00
2013-09-13 15:12:39 +02:00
2014-12-17 08:50:12 +01:00
2016-01-28 14:28:39 +01:00
2015-11-05 09:51:50 -08:00
2016-04-04 15:56:16 +02:00
2014-08-21 10:43:28 -05:00
2016-06-28 13:24:14 +02:00
2015-12-28 13:41:44 +01:00
2013-01-03 10:27:31 +01:00
2016-03-10 17:17:26 +01:00
2014-08-21 10:43:28 -05:00
2015-06-29 14:51:12 +02:00
2015-06-29 14:51:12 +02:00
2014-08-27 23:27:10 +02:00
2014-06-30 09:54:22 +02:00
2014-05-14 10:53:56 +09:30
2015-06-29 14:51:12 +02:00
2015-12-28 13:41:44 +01:00
2013-04-30 10:19:07 +02:00
2013-09-04 11:58:32 +02:00
2015-06-12 15:04:17 +02:00
2013-01-03 10:27:31 +01:00
2015-12-28 13:41:44 +01:00
2016-01-27 22:39:32 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2013-10-30 14:17:31 +01:00
2015-12-28 13:41:51 +01:00
2013-03-14 11:50:49 +01:00
2015-12-28 13:41:51 +01:00
2013-04-08 10:33:13 +02:00
2015-12-28 13:41:51 +01:00
2012-11-18 22:58:28 +01:00
2013-10-30 14:17:31 +01:00
2015-12-28 13:41:51 +01:00
2012-11-12 15:30:29 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2012-11-12 15:30:28 +01:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2016-04-04 09:49:12 +02:00
2015-09-04 14:44:44 +02:00
2013-01-03 10:27:31 +01:00
2015-04-10 22:22:55 +02:00
2016-01-20 17:30:20 -08:00
2015-05-07 10:47:53 +02:00
2016-03-17 13:51:54 +01:00
2013-08-26 13:51:10 +02:00
2015-12-28 13:41:44 +01:00
2014-08-21 10:43:28 -05:00
2015-03-15 10:04:27 -04:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-11-05 09:51:50 -08:00
2013-01-03 10:27:31 +01:00
2014-02-17 14:57:17 +01:00
2013-06-03 11:07:06 +02:00
2016-03-18 17:31:38 +01:00
2015-12-28 13:41:44 +01:00
2013-08-26 13:23:04 +02:00
2013-09-13 15:11:34 +02:00
2013-07-31 10:12:28 +02:00
2016-05-17 12:41:22 +02:00
2016-07-28 10:49:23 +02:00
2016-07-28 10:49:23 +02:00
2016-08-31 14:12:35 +02:00
2016-05-03 11:55:05 +02:00
2016-05-17 12:42:27 +02:00
2016-05-03 11:55:05 +02:00
2015-08-28 20:43:20 +02:00