/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. */ #include #include #include #include #include #include #include #include #include #include #include "dsms_debug.h" #include "dsms_init.h" static int is_dsms_initialized_flag = false; int dsms_is_initialized(void) { return is_dsms_initialized_flag; } static __init int dsms_init(void) { printk(DSMS_TAG "Started" #ifdef DSMS_DEBUG_ENABLE " (DSMS_DEBUG_ENABLE" #ifdef DSMS_DEBUG_TRACE_DSMS_CALLS " DSMS_DEBUG_TRACE_DSMS_CALLS" #endif //DSMS_DEBUG_TRACE_DSMS_CALLS #ifdef DSMS_DEBUG_WHITELIST " DSMS_DEBUG_WHITELIST" #endif //DSMS_DEBUG_WHITELIST ")" #endif //DSMS_DEBUG_ENABLE "."); is_dsms_initialized_flag = true; return 0; } module_init(dsms_init);