|
@@ -721,14 +721,19 @@ QDF_STATUS ol_txrx_ipa_cleanup(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
|
|
|
struct ol_txrx_ipa_resources *ipa_res;
|
|
|
struct ol_txrx_soc_t *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
|
|
qdf_device_t osdev = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
|
|
|
- ol_txrx_pdev_handle pdev =
|
|
|
- ol_txrx_get_pdev_from_pdev_id(soc, OL_TXRX_PDEV_ID);
|
|
|
+ ol_txrx_pdev_handle pdev;
|
|
|
|
|
|
- if (!pdev || !osdev) {
|
|
|
+ if (!soc || !osdev) {
|
|
|
ol_txrx_err("%s invalid instance", __func__);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
+ pdev = ol_txrx_get_pdev_from_pdev_id(soc, OL_TXRX_PDEV_ID);
|
|
|
+ if (!pdev) {
|
|
|
+ ol_txrx_err("%s NULL pdev invalid instance", __func__);
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
ipa_res = &pdev->ipa_resource;
|
|
|
if (osdev->smmu_s1_enabled) {
|
|
|
ret = pld_smmu_unmap(osdev->dev,
|