miscdevice: Use module_misc_device() macro
authorPrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Thu, 25 Aug 2016 17:00:50 +0000 (22:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 12:12:35 +0000 (14:12 +0200)
commitd6a38c0ba778abd6683858bfd7c768f7edab2ebb
treec551509f81466432748179919b33775292e24abc
parentca75d601b5942e8cf5eed68f308be0526d0dac5d
miscdevice: Use module_misc_device() macro

This patch removes module_init()/module_exit() from driver code by using
module_misc_device() macro. All modules in this patch has a print
statement which is removed when module_misc_device() macro is used.
If undesirable this patch can be dropped entirely, this is the only
purpose of making this as a separate patch.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/drivers/harddog_kern.c
drivers/bluetooth/hci_vhci.c
drivers/char/bfin-otp.c
drivers/lightnvm/core.c