.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #include <linux/input/matrix_keypad.h> |
---|
.. | .. |
---|
155 | 152 | int error; |
---|
156 | 153 | |
---|
157 | 154 | 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) |
---|
160 | 156 | return -EINVAL; |
---|
161 | | - } |
---|
162 | 157 | |
---|
163 | 158 | keypad = devm_kzalloc(&pdev->dev, sizeof(struct nspire_keypad), |
---|
164 | 159 | GFP_KERNEL); |
---|