1 /*
2 * devmgr_load.c
3 *
4 * device manager loader of linux
5 *
6 * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
7 *
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 */
18
19 #include <linux/module.h>
20 #include <linux/platform_device.h>
21 #include <linux/of_device.h>
22 #include "devmgr_service_start.h"
23 #include "hdf_log.h"
24
DeviceManagerInit(void)25 static int __init DeviceManagerInit(void)
26 {
27 int ret;
28
29 HDF_LOGD("%s enter", __func__);
30 ret = DeviceManagerStart();
31 if (ret < 0) {
32 HDF_LOGE("%s start failed %d", __func__, ret);
33 } else {
34 HDF_LOGD("%s start success", __func__);
35 }
36 return ret;
37 }
38
39 late_initcall(DeviceManagerInit);
40
41