forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/drivers/extcon/extcon-adc-jack.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * drivers/extcon/extcon-adc-jack.c
34 *
....@@ -10,11 +11,6 @@
1011 * MyungJoo Ham <myungjoo.ham@samsung.com>
1112 *
1213 * Modified for calling to IIO to get adc by <anish.singh@samsung.com>
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
17
- *
1814 */
1915
2016 #include <linux/module.h>
....@@ -144,10 +140,8 @@
144140 return err;
145141
146142 data->irq = platform_get_irq(pdev, 0);
147
- if (data->irq < 0) {
148
- dev_err(&pdev->dev, "platform_get_irq failed\n");
143
+ if (data->irq < 0)
149144 return -ENODEV;
150
- }
151145
152146 err = request_any_context_irq(data->irq, adc_jack_irq_thread,
153147 pdata->irq_flags, pdata->name, data);