mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
ASoC: codecs: Use resource managed function calls during irq exit
wcd_init_irq uses resource managed irq addition. Similarly, use resource managed irq deletion in wcd_irq_exit. Change-Id: I67c702c1d2fbec0c7fd496672fae03a82cb63048 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
parent
1fc4ce6795
commit
594cedb3dd
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -178,7 +178,8 @@ int wcd_irq_exit(struct wcd_irq_info *irq_info, struct irq_domain *virq)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
regmap_del_irq_chip(irq_find_mapping(virq, 0), irq_info->irq_chip);
|
||||
devm_regmap_del_irq_chip(irq_info->dev, irq_find_mapping(virq, 0),
|
||||
irq_info->irq_chip);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue