.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/extcon/extcon-adc-jack.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
10 | 11 | * MyungJoo Ham <myungjoo.ham@samsung.com> |
---|
11 | 12 | * |
---|
12 | 13 | * 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 | | - * |
---|
18 | 14 | */ |
---|
19 | 15 | |
---|
20 | 16 | #include <linux/module.h> |
---|
.. | .. |
---|
144 | 140 | return err; |
---|
145 | 141 | |
---|
146 | 142 | 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) |
---|
149 | 144 | return -ENODEV; |
---|
150 | | - } |
---|
151 | 145 | |
---|
152 | 146 | err = request_any_context_irq(data->irq, adc_jack_irq_thread, |
---|
153 | 147 | pdata->irq_flags, pdata->name, data); |
---|