hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/input/serio/arc_ps2.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
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 * Driver is originally developed by Pavel Sokolov <psokolov@synopsys.com>
96 */
....@@ -190,10 +187,8 @@
190187 int error, id, i;
191188
192189 irq = platform_get_irq_byname(pdev, "arc_ps2_irq");
193
- if (irq < 0) {
194
- dev_err(&pdev->dev, "no IRQ defined\n");
190
+ if (irq < 0)
195191 return -EINVAL;
196
- }
197192
198193 arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(struct arc_ps2_data),
199194 GFP_KERNEL);