| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Keyboard class input driver for the NVIDIA Tegra SoC internal matrix |
|---|
| 3 | 4 | * keyboard controller |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * 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. |
|---|
| 20 | 7 | */ |
|---|
| 21 | 8 | |
|---|
| 22 | 9 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 644 | 631 | return -EINVAL; |
|---|
| 645 | 632 | |
|---|
| 646 | 633 | 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) |
|---|
| 649 | 635 | return -ENXIO; |
|---|
| 650 | | - } |
|---|
| 651 | 636 | |
|---|
| 652 | 637 | kbc->idev = devm_input_allocate_device(&pdev->dev); |
|---|
| 653 | 638 | if (!kbc->idev) { |
|---|