hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/misc/e3x0-button.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014, National Instruments Corp. All rights reserved.
34 *
45 * Driver for NI Ettus Research USRP E3x0 Button Driver
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; version 2 of the License.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 */
157
168 #include <linux/device.h>
....@@ -73,18 +65,12 @@
7365 int error;
7466
7567 irq_press = platform_get_irq_byname(pdev, "press");
76
- if (irq_press < 0) {
77
- dev_err(&pdev->dev, "No IRQ for 'press', error=%d\n",
78
- irq_press);
68
+ if (irq_press < 0)
7969 return irq_press;
80
- }
8170
8271 irq_release = platform_get_irq_byname(pdev, "release");
83
- if (irq_release < 0) {
84
- dev_err(&pdev->dev, "No IRQ for 'release', error=%d\n",
85
- irq_release);
72
+ if (irq_release < 0)
8673 return irq_release;
87
- }
8874
8975 input = devm_input_allocate_device(&pdev->dev);
9076 if (!input)