From 3a6c13c8c72b010a3d10b5b93f96ab7a62d5d70f Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Fri, 6 Jan 2017 13:01:08 -0800 Subject: [PATCH] qcacld-3.0: Rename HDD PDEV object delete API Rename HDD PDEV object delete API to hdd_release_and_destroy_pdev to indicate its true behaviour. Change-Id: Idefcd72b2ab038ca5c9b30e42893c261647069a6 CRs-Fixed: 1108530 --- core/hdd/inc/wlan_hdd_main.h | 4 ++-- core/hdd/src/wlan_hdd_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index e9fb59c3a6..81a089d86c 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2044,14 +2044,14 @@ QDF_STATUS hdd_release_and_destroy_psoc(hdd_context_t *hdd_ctx); QDF_STATUS hdd_create_and_store_pdev(hdd_context_t *hdd_ctx); /** - * hdd_destroy_and_release_pdev() - Deletes the pdev object + * hdd_release_and_destroy_pdev() - Deletes the pdev object * @hdd_ctx: Hdd context * * This API deletes pdev object and release its reference from hdd context * * Return: QDF_STATUS */ -QDF_STATUS hdd_destroy_and_release_pdev(hdd_context_t *hdd_ctx); +QDF_STATUS hdd_release_and_destroy_pdev(hdd_context_t *hdd_ctx); /** * hdd_create_and_store_vdev() - Create vdev object and store in hdd adapter diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 918889d142..fa7b99021d 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7907,7 +7907,7 @@ int hdd_wlan_stop_modules(hdd_context_t *hdd_ctx) QDF_ASSERT(0); } - qdf_status = hdd_destroy_and_release_pdev(hdd_ctx); + qdf_status = hdd_release_and_destroy_pdev(hdd_ctx); if (QDF_IS_STATUS_ERROR(qdf_status)) hdd_err("Pdev delete failed"); @@ -9962,7 +9962,7 @@ QDF_STATUS hdd_create_and_store_pdev(hdd_context_t *hdd_ctx) return QDF_STATUS_SUCCESS; } -QDF_STATUS hdd_destroy_and_release_pdev(hdd_context_t *hdd_ctx) +QDF_STATUS hdd_release_and_destroy_pdev(hdd_context_t *hdd_ctx) { struct wlan_objmgr_pdev *pdev = hdd_ctx->hdd_pdev;