diff options
Diffstat (limited to 'drivers/extcon/extcon-adc-jack.c')
| -rw-r--r-- | drivers/extcon/extcon-adc-jack.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c index 725eb5aa8d8c..e87196f6d2d2 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | * | 14 | * |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include <linux/module.h> | ||
| 17 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
| 18 | #include <linux/device.h> | 19 | #include <linux/device.h> |
| 19 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
| @@ -161,13 +162,12 @@ static int __devinit adc_jack_probe(struct platform_device *pdev) | |||
| 161 | err = request_any_context_irq(data->irq, adc_jack_irq_thread, | 162 | err = request_any_context_irq(data->irq, adc_jack_irq_thread, |
| 162 | pdata->irq_flags, pdata->name, data); | 163 | pdata->irq_flags, pdata->name, data); |
| 163 | 164 | ||
| 164 | if (err) { | 165 | if (err < 0) { |
| 165 | dev_err(&pdev->dev, "error: irq %d\n", data->irq); | 166 | dev_err(&pdev->dev, "error: irq %d\n", data->irq); |
| 166 | err = -EINVAL; | ||
| 167 | goto err_irq; | 167 | goto err_irq; |
| 168 | } | 168 | } |
| 169 | 169 | ||
| 170 | goto out; | 170 | return 0; |
| 171 | 171 | ||
| 172 | err_irq: | 172 | err_irq: |
| 173 | extcon_dev_unregister(&data->edev); | 173 | extcon_dev_unregister(&data->edev); |
| @@ -196,3 +196,7 @@ static struct platform_driver adc_jack_driver = { | |||
| 196 | }; | 196 | }; |
| 197 | 197 | ||
| 198 | module_platform_driver(adc_jack_driver); | 198 | module_platform_driver(adc_jack_driver); |
| 199 | |||
| 200 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); | ||
| 201 | MODULE_DESCRIPTION("ADC Jack extcon driver"); | ||
| 202 | MODULE_LICENSE("GPL v2"); | ||
