cnss_prealloc: add wrapper APIs if MEM_PRE_ALLOC flag not enabled
Add wrapper api to avoid compilaton failure if CONFIG_WCNSS_MEM_PRE_ALLOC flag is not enabled. Change-Id: Ic0625d68f587c79f38f33495b53645f1d7582144 CRs-Fixed: 3492092
Bu işleme şunda yer alıyor:

işlemeyi yapan:
Madan Koyyalamudi

ebeveyn
a232234d41
işleme
ff9d11362f
@@ -4503,6 +4503,24 @@ static void rproc_restart_level_notifier(void *data, struct rproc *rproc)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_WCNSS_MEM_PRE_ALLOC
|
||||
static void icnss_initialize_mem_pool(unsigned long device_id)
|
||||
{
|
||||
cnss_initialize_prealloc_pool(device_id);
|
||||
}
|
||||
static void icnss_deinitialize_mem_pool(void)
|
||||
{
|
||||
cnss_deinitialize_prealloc_pool();
|
||||
}
|
||||
#else
|
||||
static void icnss_initialize_mem_pool(unsigned long device_id)
|
||||
{
|
||||
}
|
||||
static void icnss_deinitialize_mem_pool(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static int icnss_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -4541,7 +4559,7 @@ static int icnss_probe(struct platform_device *pdev)
|
||||
INIT_LIST_HEAD(&priv->clk_list);
|
||||
icnss_allow_recursive_recovery(dev);
|
||||
|
||||
cnss_initialize_prealloc_pool(priv->device_id);
|
||||
icnss_initialize_mem_pool(priv->device_id);
|
||||
|
||||
icnss_init_control_params(priv);
|
||||
|
||||
@@ -4658,7 +4676,7 @@ smmu_cleanup:
|
||||
out_free_resources:
|
||||
icnss_put_resources(priv);
|
||||
out_reset_drvdata:
|
||||
cnss_deinitialize_prealloc_pool();
|
||||
icnss_deinitialize_mem_pool();
|
||||
dev_set_drvdata(dev, NULL);
|
||||
return ret;
|
||||
}
|
||||
@@ -4753,7 +4771,7 @@ static int icnss_remove(struct platform_device *pdev)
|
||||
|
||||
icnss_put_resources(priv);
|
||||
|
||||
cnss_deinitialize_prealloc_pool();
|
||||
icnss_deinitialize_mem_pool();
|
||||
|
||||
dev_set_drvdata(&pdev->dev, NULL);
|
||||
|
||||
|
Yeni konuda referans
Bir kullanıcı engelle