static void __init msm8916_init(void) { struct of_dev_auxdata *adata = msm8916_auxdata_lookup; #ifdef CONFIG_SEC_DEBUG sec_debug_init(); #endif #ifdef CONFIG_PROC_AVC sec_avc_log_init(); #endif /* * populate devices from DT first so smem probe will get called as part * of msm_smem_init. socinfo_init needs smem support so call * msm_smem_init before it. */ of_platform_populate(NULL, of_default_bus_match_table, adata, NULL); msm_smem_init(); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); samsung_sys_class_init(); msm8916_add_drivers(); platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); }
static void __init msm8916_init(void) { struct of_dev_auxdata *adata = msm8916_auxdata_lookup; /* * populate devices from DT first so smem probe will get called as part * of msm_smem_init. socinfo_init needs smem support so call * msm_smem_init before it. */ of_platform_populate(NULL, of_default_bus_match_table, adata, NULL); msm_smem_init(); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm8916_add_drivers(); }