.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * STMicroelectronics Key Scanning driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Author: Stuart Menefy <stuart.menefy@st.com> |
---|
6 | 7 | * |
---|
7 | 8 | * Based on sh_keysc.c, copyright 2008 Magnus Damm |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/module.h> |
---|
.. | .. |
---|
190 | 187 | keyscan_stop(keypad_data); |
---|
191 | 188 | |
---|
192 | 189 | keypad_data->irq = platform_get_irq(pdev, 0); |
---|
193 | | - if (keypad_data->irq < 0) { |
---|
194 | | - dev_err(&pdev->dev, "no IRQ specified\n"); |
---|
| 190 | + if (keypad_data->irq < 0) |
---|
195 | 191 | return -EINVAL; |
---|
196 | | - } |
---|
197 | 192 | |
---|
198 | 193 | error = devm_request_irq(&pdev->dev, keypad_data->irq, keyscan_isr, 0, |
---|
199 | 194 | pdev->name, keypad_data); |
---|