From: Vyacheslav Cherkashin Date: Thu, 19 Oct 2017 17:50:32 +0000 (+0300) Subject: fbiprobe: use the common initialization mechanism X-Git-Tag: submit/tizen_4.0/20180109.094119~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2657f95bb02632a17676be9b8da1e76c287bb33;p=platform%2Fkernel%2Fswap-modules.git fbiprobe: use the common initialization mechanism Change-Id: Iaee19e8db0711d282e064bf13c191abf11de6340 Signed-off-by: Vyacheslav Cherkashin --- diff --git a/modules/fbiprobe/fbiprobe.c b/modules/fbiprobe/fbiprobe.c index 39e64774..42f5223c 100644 --- a/modules/fbiprobe/fbiprobe.c +++ b/modules/fbiprobe/fbiprobe.c @@ -38,6 +38,7 @@ #include "fbi_msg.h" #include "regs.h" +#include #include #include #include @@ -392,7 +393,7 @@ static struct probe_iface fbi_probe_iface = { .cleanup = fbi_probe_cleanup }; -static int __init fbiprobe_module_init(void) +static int fbiprobe_init(void) { int ret = 0; ret = swap_register_probe_type(SWAP_FBIPROBE, &fbi_probe_iface); @@ -400,13 +401,12 @@ static int __init fbiprobe_module_init(void) return ret; } -static void __exit fbiprobe_module_exit(void) +static void fbiprobe_uninit(void) { swap_unregister_probe_type(SWAP_FBIPROBE); } -module_init(fbiprobe_module_init); -module_exit(fbiprobe_module_exit); +SWAP_LIGHT_INIT_MODULE_CORE(fbiprobe_init, fbiprobe_uninit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("SWAP fbiprobe");