hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/keyboard/lpc32xx-keys.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * NXP LPC32xx SoC Key Scan Interface
34 *
....@@ -7,17 +8,6 @@
78 *
89 * Copyright (C) 2010 NXP Semiconductors
910 * Copyright (C) 2012 Roland Stigge
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
2111 *
2212 * This controller supports square key matrices from 1x1 up to 8x8
2313 */
....@@ -182,10 +172,8 @@
182172 }
183173
184174 irq = platform_get_irq(pdev, 0);
185
- if (irq < 0) {
186
- dev_err(&pdev->dev, "failed to get platform irq\n");
175
+ if (irq < 0)
187176 return -EINVAL;
188
- }
189177
190178 kscandat = devm_kzalloc(&pdev->dev, sizeof(*kscandat),
191179 GFP_KERNEL);