hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/keyboard/st-keyscan.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * STMicroelectronics Key Scanning driver
34 *
....@@ -5,10 +6,6 @@
56 * Author: Stuart Menefy <stuart.menefy@st.com>
67 *
78 * 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.
129 */
1310
1411 #include <linux/module.h>
....@@ -190,10 +187,8 @@
190187 keyscan_stop(keypad_data);
191188
192189 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)
195191 return -EINVAL;
196
- }
197192
198193 error = devm_request_irq(&pdev->dev, keypad_data->irq, keyscan_isr, 0,
199194 pdev->name, keypad_data);