ath11k: use MHI provided APIs to allocate and free MHI controller
authorBhaumik Bhatt <bbhatt@codeaurora.org>
Tue, 17 Nov 2020 17:33:56 +0000 (09:33 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 Dec 2020 04:38:44 +0000 (06:38 +0200)
commit57449b07eafcc831343013b87b57e928c50d16b4
treea58670efb3383d307c54809509c4fe822a4f30b0
parent5dadbe4e3718fb2214199b6dc7af1077fe14bf32
ath11k: use MHI provided APIs to allocate and free MHI controller

Use MHI provided APIs to allocate and free MHI controller to
improve MHI host driver handling. This also fixes a memory leak
as the MHI controller was allocated but never freed.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1605634436-36506-1-git-send-email-bbhatt@codeaurora.org
drivers/net/wireless/ath/ath11k/mhi.c