Merge "qcacmn: Use to wakeup_source_register from 4.19.110 kernels"

This commit is contained in:
Linux Build Service Account 2020-04-08 09:17:04 -07:00 • committed by Gerrit - the friendly Code Review server
commit 28e014d1ec

View file

@ -265,7 +265,7 @@ qdf_export_symbol(qdf_wake_lock_name);
* QDF status success: if wake lock is initialized
* QDF status failure: if wake lock was not initialized
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 80))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110))
QDF_STATUS qdf_wake_lock_create(qdf_wake_lock_t *lock, const char *name)
{
qdf_mem_zero(lock, sizeof(*lock));
@ -388,7 +388,7 @@ qdf_export_symbol(qdf_wake_lock_release);
* QDF status success: if wake lock is acquired
* QDF status failure: if wake lock was not acquired
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 80))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110))
QDF_STATUS qdf_wake_lock_destroy(qdf_wake_lock_t *lock)
{
wakeup_source_unregister(lock->priv);