hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/keyboard/tegra-kbc.c
....@@ -1,22 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Keyboard class input driver for the NVIDIA Tegra SoC internal matrix
34 * keyboard controller
45 *
56 * Copyright (c) 2009-2011, NVIDIA Corporation.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along
18
- * with this program; if not, write to the Free Software Foundation, Inc.,
19
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
207 */
218
229 #include <linux/kernel.h>
....@@ -644,10 +631,8 @@
644631 return -EINVAL;
645632
646633 kbc->irq = platform_get_irq(pdev, 0);
647
- if (kbc->irq < 0) {
648
- dev_err(&pdev->dev, "failed to get keyboard IRQ\n");
634
+ if (kbc->irq < 0)
649635 return -ENXIO;
650
- }
651636
652637 kbc->idev = devm_input_allocate_device(&pdev->dev);
653638 if (!kbc->idev) {