| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ON pin driver for Dialog DA9055 PMICs |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright(c) 2012 Dialog Semiconductor Ltd. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: David Dajun Chen <dchen@diasemi.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/input.h> |
|---|
| .. | .. |
|---|
| 80 | 76 | int irq, err; |
|---|
| 81 | 77 | |
|---|
| 82 | 78 | irq = platform_get_irq_byname(pdev, "ONKEY"); |
|---|
| 83 | | - if (irq < 0) { |
|---|
| 84 | | - dev_err(&pdev->dev, |
|---|
| 85 | | - "Failed to get an IRQ for input device, %d\n", irq); |
|---|
| 79 | + if (irq < 0) |
|---|
| 86 | 80 | return -EINVAL; |
|---|
| 87 | | - } |
|---|
| 88 | 81 | |
|---|
| 89 | 82 | onkey = devm_kzalloc(&pdev->dev, sizeof(*onkey), GFP_KERNEL); |
|---|
| 90 | 83 | if (!onkey) { |
|---|