.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Arizona interrupt support |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2012 Wolfson Microelectronics plc |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/delay.h> |
---|
.. | .. |
---|
103 | 100 | unsigned int val; |
---|
104 | 101 | int ret; |
---|
105 | 102 | |
---|
106 | | - ret = pm_runtime_get_sync(arizona->dev); |
---|
| 103 | + ret = pm_runtime_resume_and_get(arizona->dev); |
---|
107 | 104 | if (ret < 0) { |
---|
108 | 105 | dev_err(arizona->dev, "Failed to resume device: %d\n", ret); |
---|
109 | 106 | return IRQ_NONE; |
---|