mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacmn: Use to wakeup_source_register from 4.19.110 kernels
As part of new kernels it is suggested to move to the upstreamed wakelock apis for registration and unregistration. Change-Id: I80b8dd85c6ad1b50951fff9da810e8e96a402752 CRs-Fixed: 2658888
This commit is contained in:
parent
bfbf27a6e6
commit
87be18b922
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue