]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: Android: logger: module_exit implementation
authorLuca Clementi <luca.clementi@gmail.com>
Thu, 22 Nov 2012 03:43:17 +0000 (19:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:01:30 +0000 (16:01 -0800)
commit6569e1cbca90f55838135d050b877df4c521ed06
tree096c5d98f4af84251cab2f290d7e5000527d33e1
parent4bd78b08957944e5dedd09a8348236323f4c837d
Staging: Android: logger: module_exit implementation

This patch creates the module_exit for the android logger
so that it can be loaded and unloaded as a module.

The android logger is already declared as a tristate in the
Kconfig but the module_exit function was missing.

device_initcall works also with modprobe since include/linux/init.h:

 #define module_init(x)  __initcall(x);
 ...
 #define __initcall(fn) device_initcall(fn)

Tested against 4172e13022f15b22a5dcea7aefa59f604cb8fb1a Linux 3.7-rc6

Signed-off-by: Luca Clementi <luca.clementi@gmail.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Robert Love <rlove@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c