qcacld-3.0: Register for qdf_op_protect/unprotect
As a step towards removing qdf_ssr_protect, register for the replacement APIs, qdf_op_protect/unprotect. Change-Id: Ica5802082b3be51f47bdf4ae0eb132b80c29b08a CRs-Fixed: 2418432
This commit is contained in:
@@ -58,6 +58,9 @@ static struct osif_psoc_sync *osif_psoc_sync_lookup(struct device *dev)
|
||||
for (i = 0; i < QDF_ARRAY_SIZE(__osif_psoc_sync_arr); i++) {
|
||||
struct osif_psoc_sync *psoc_sync = __osif_psoc_sync_arr + i;
|
||||
|
||||
if (!psoc_sync->in_use)
|
||||
continue;
|
||||
|
||||
if (psoc_sync->dev == dev)
|
||||
return psoc_sync;
|
||||
}
|
||||
|
@@ -57,6 +57,9 @@ static struct osif_vdev_sync *osif_vdev_sync_lookup(struct net_device *net_dev)
|
||||
for (i = 0; i < QDF_ARRAY_SIZE(__osif_vdev_sync_arr); i++) {
|
||||
struct osif_vdev_sync *vdev_sync = __osif_vdev_sync_arr + i;
|
||||
|
||||
if (!vdev_sync->in_use)
|
||||
continue;
|
||||
|
||||
if (vdev_sync->net_dev == net_dev)
|
||||
return vdev_sync;
|
||||
}
|
||||
|
Reference in New Issue
Block a user