.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2014, National Instruments Corp. All rights reserved. |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
14 | 6 | */ |
---|
15 | 7 | |
---|
16 | 8 | #include <linux/device.h> |
---|
.. | .. |
---|
73 | 65 | int error; |
---|
74 | 66 | |
---|
75 | 67 | 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) |
---|
79 | 69 | return irq_press; |
---|
80 | | - } |
---|
81 | 70 | |
---|
82 | 71 | 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) |
---|
86 | 73 | return irq_release; |
---|
87 | | - } |
---|
88 | 74 | |
---|
89 | 75 | input = devm_input_allocate_device(&pdev->dev); |
---|
90 | 76 | if (!input) |
---|