Message ID | 2880161.O2Qj0NkBq3@wuerfel (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 75cd381a8181..d11cd604562c 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -732,8 +732,10 @@ static int exynos_adc_ts_init(struct exynos_adc *info) input_set_drvdata(info->input, info); ret = input_register_device(info->input); - if (ret) + if (ret) { input_free_device(info->input); + return ret; + } disable_irq(info->tsirq); ret = request_threaded_irq(info->tsirq, NULL, exynos_ts_isr,