| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * OpenCores Keyboard Controller Driver |
|---|
| 3 | 4 | * http://www.opencores.org/project,keyboardcontroller |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright 2007-2009 HV Sistemas S.L. |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2 or later. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #include <linux/input.h> |
|---|
| .. | .. |
|---|
| 50 | 49 | } |
|---|
| 51 | 50 | |
|---|
| 52 | 51 | irq = platform_get_irq(pdev, 0); |
|---|
| 53 | | - if (irq < 0) { |
|---|
| 54 | | - dev_err(&pdev->dev, "missing board IRQ resource\n"); |
|---|
| 52 | + if (irq < 0) |
|---|
| 55 | 53 | return -EINVAL; |
|---|
| 56 | | - } |
|---|
| 57 | 54 | |
|---|
| 58 | 55 | opencores_kbd = devm_kzalloc(&pdev->dev, sizeof(*opencores_kbd), |
|---|
| 59 | 56 | GFP_KERNEL); |
|---|