hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/misc/pm8941-pwrkey.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
34 * Copyright (c) 2014, Sony Mobile Communications Inc.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 and
7
- * only version 2 as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include <linux/delay.h>
....@@ -213,10 +205,8 @@
213205 return error;
214206
215207 pwrkey->irq = platform_get_irq(pdev, 0);
216
- if (pwrkey->irq < 0) {
217
- dev_err(&pdev->dev, "failed to get irq\n");
208
+ if (pwrkey->irq < 0)
218209 return pwrkey->irq;
219
- }
220210
221211 error = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_REV2,
222212 &pwrkey->revision);