.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | * |
---|
8 | 5 | * Driver is originally developed by Pavel Sokolov <psokolov@synopsys.com> |
---|
9 | 6 | */ |
---|
.. | .. |
---|
190 | 187 | int error, id, i; |
---|
191 | 188 | |
---|
192 | 189 | 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) |
---|
195 | 191 | return -EINVAL; |
---|
196 | | - } |
---|
197 | 192 | |
---|
198 | 193 | arc_ps2 = devm_kzalloc(&pdev->dev, sizeof(struct arc_ps2_data), |
---|
199 | 194 | GFP_KERNEL); |
---|