.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) ST-Ericsson SA 2010 |
---|
3 | 4 | * |
---|
4 | | - * License Terms: GNU General Public License v2 |
---|
5 | 5 | * Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson |
---|
6 | 6 | * |
---|
7 | 7 | * AB8500 Power-On Key handler |
---|
.. | .. |
---|
55 | 55 | int error; |
---|
56 | 56 | |
---|
57 | 57 | irq_dbf = platform_get_irq_byname(pdev, "ONKEY_DBF"); |
---|
58 | | - if (irq_dbf < 0) { |
---|
59 | | - dev_err(&pdev->dev, "No IRQ for ONKEY_DBF, error=%d\n", irq_dbf); |
---|
| 58 | + if (irq_dbf < 0) |
---|
60 | 59 | return irq_dbf; |
---|
61 | | - } |
---|
62 | 60 | |
---|
63 | 61 | irq_dbr = platform_get_irq_byname(pdev, "ONKEY_DBR"); |
---|
64 | | - if (irq_dbr < 0) { |
---|
65 | | - dev_err(&pdev->dev, "No IRQ for ONKEY_DBR, error=%d\n", irq_dbr); |
---|
| 62 | + if (irq_dbr < 0) |
---|
66 | 63 | return irq_dbr; |
---|
67 | | - } |
---|
68 | 64 | |
---|
69 | 65 | ponkey = devm_kzalloc(&pdev->dev, sizeof(struct ab8500_ponkey), |
---|
70 | 66 | GFP_KERNEL); |
---|