| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/input/keyboard/pxa27x_keypad.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Based on a previous implementations by Kevin O'Connor |
|---|
| 10 | 11 | * <kevin_at_koconnor.net> and Alex Osborne <bobofdoom@gmail.com> and |
|---|
| 11 | 12 | * on some suggestions by Nicolas Pitre <nico@fluxnic.net>. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 14 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 15 | | - * published by the Free Software Foundation. |
|---|
| 16 | 13 | */ |
|---|
| 17 | 14 | |
|---|
| 18 | 15 | |
|---|
| .. | .. |
|---|
| 730 | 727 | return -EINVAL; |
|---|
| 731 | 728 | |
|---|
| 732 | 729 | irq = platform_get_irq(pdev, 0); |
|---|
| 733 | | - if (irq < 0) { |
|---|
| 734 | | - dev_err(&pdev->dev, "failed to get keypad irq\n"); |
|---|
| 730 | + if (irq < 0) |
|---|
| 735 | 731 | return -ENXIO; |
|---|
| 736 | | - } |
|---|
| 737 | 732 | |
|---|
| 738 | 733 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 739 | 734 | if (res == NULL) { |
|---|