forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/media/rc/img-ir/img-ir-core.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ImgTec IR Decoder found in PowerDown Controller.
34 *
45 * 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.
106 *
117 * This contains core img-ir code for setting up the driver. The two interfaces
128 * (raw and hardware decode) are handled separately.
....@@ -85,10 +81,8 @@
8581
8682 /* Get resources from platform device */
8783 irq = platform_get_irq(pdev, 0);
88
- if (irq < 0) {
89
- dev_err(&pdev->dev, "cannot find IRQ resource\n");
84
+ if (irq < 0)
9085 return irq;
91
- }
9286
9387 /* Private driver data */
9488 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);