| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * NXP LPC32xx SoC Key Scan Interface |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Copyright (C) 2010 NXP Semiconductors |
|---|
| 9 | 10 | * 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 | | - * |
|---|
| 21 | 11 | * |
|---|
| 22 | 12 | * This controller supports square key matrices from 1x1 up to 8x8 |
|---|
| 23 | 13 | */ |
|---|
| .. | .. |
|---|
| 182 | 172 | } |
|---|
| 183 | 173 | |
|---|
| 184 | 174 | 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) |
|---|
| 187 | 176 | return -EINVAL; |
|---|
| 188 | | - } |
|---|
| 189 | 177 | |
|---|
| 190 | 178 | kscandat = devm_kzalloc(&pdev->dev, sizeof(*kscandat), |
|---|
| 191 | 179 | GFP_KERNEL); |
|---|