hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/input/keyboard/nspire-keypad.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2, as
6
- * published by the Free Software Foundation.
74 */
85
96 #include <linux/input/matrix_keypad.h>
....@@ -155,10 +152,8 @@
155152 int error;
156153
157154 irq = platform_get_irq(pdev, 0);
158
- if (irq < 0) {
159
- dev_err(&pdev->dev, "failed to get keypad irq\n");
155
+ if (irq < 0)
160156 return -EINVAL;
161
- }
162157
163158 keypad = devm_kzalloc(&pdev->dev, sizeof(struct nspire_keypad),
164159 GFP_KERNEL);