forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mfd/arizona-irq.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Arizona interrupt support
34 *
45 * Copyright 2012 Wolfson Microelectronics plc
56 *
67 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/delay.h>
....@@ -103,7 +100,7 @@
103100 unsigned int val;
104101 int ret;
105102
106
- ret = pm_runtime_get_sync(arizona->dev);
103
+ ret = pm_runtime_resume_and_get(arizona->dev);
107104 if (ret < 0) {
108105 dev_err(arizona->dev, "Failed to resume device: %d\n", ret);
109106 return IRQ_NONE;