Staging: Android: logger: module_exit implementation
authorLuca Clementi <luca.clementi@gmail.com>
Thu, 22 Nov 2012 03:43:17 +0000 (19:43 -0800)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Apr 2021 08:33:07 +0000 (10:33 +0200)
commit83de6016682dfdf73bac5820e5a89f90ea1b3bfb
tree863e0a82df2b2028c5629b54b8cf609b988dbea6
parentdeb71f0ec44e093891305bcfd20e445257de0cf2
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 f4a75d2eb7b1e2206094b901be09adb31ba63681 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