hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/misc/da9055_onkey.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ON pin driver for Dialog DA9055 PMICs
34 *
45 * Copyright(c) 2012 Dialog Semiconductor Ltd.
56 *
67 * Author: David Dajun Chen <dchen@diasemi.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/input.h>
....@@ -80,11 +76,8 @@
8076 int irq, err;
8177
8278 irq = platform_get_irq_byname(pdev, "ONKEY");
83
- if (irq < 0) {
84
- dev_err(&pdev->dev,
85
- "Failed to get an IRQ for input device, %d\n", irq);
79
+ if (irq < 0)
8680 return -EINVAL;
87
- }
8881
8982 onkey = devm_kzalloc(&pdev->dev, sizeof(*onkey), GFP_KERNEL);
9083 if (!onkey) {