.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * ImgTec IR Decoder found in PowerDown Controller. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2010-2014 Imagination Technologies Ltd. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by the |
---|
8 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
9 | | - * option) any later version. |
---|
10 | 6 | * |
---|
11 | 7 | * This contains core img-ir code for setting up the driver. The two interfaces |
---|
12 | 8 | * (raw and hardware decode) are handled separately. |
---|
.. | .. |
---|
85 | 81 | |
---|
86 | 82 | /* Get resources from platform device */ |
---|
87 | 83 | irq = platform_get_irq(pdev, 0); |
---|
88 | | - if (irq < 0) { |
---|
89 | | - dev_err(&pdev->dev, "cannot find IRQ resource\n"); |
---|
| 84 | + if (irq < 0) |
---|
90 | 85 | return irq; |
---|
91 | | - } |
---|
92 | 86 | |
---|
93 | 87 | /* Private driver data */ |
---|
94 | 88 | priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); |
---|