hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/misc/ab8500-ponkey.c
....@@ -1,7 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) ST-Ericsson SA 2010
34 *
4
- * License Terms: GNU General Public License v2
55 * Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson
66 *
77 * AB8500 Power-On Key handler
....@@ -55,16 +55,12 @@
5555 int error;
5656
5757 irq_dbf = platform_get_irq_byname(pdev, "ONKEY_DBF");
58
- if (irq_dbf < 0) {
59
- dev_err(&pdev->dev, "No IRQ for ONKEY_DBF, error=%d\n", irq_dbf);
58
+ if (irq_dbf < 0)
6059 return irq_dbf;
61
- }
6260
6361 irq_dbr = platform_get_irq_byname(pdev, "ONKEY_DBR");
64
- if (irq_dbr < 0) {
65
- dev_err(&pdev->dev, "No IRQ for ONKEY_DBR, error=%d\n", irq_dbr);
62
+ if (irq_dbr < 0)
6663 return irq_dbr;
67
- }
6864
6965 ponkey = devm_kzalloc(&pdev->dev, sizeof(struct ab8500_ponkey),
7066 GFP_KERNEL);