Title: [8498] trunk/drivers/staging/iio/adc/ad7414.c: Task[#5912] forgot to unregister irq when probe error.
- Revision
- 8498
- Author
- sonicz
- Date
- 2010-03-18 05:00:37 -0400 (Thu, 18 Mar 2010)
Log Message
Task[#5912] forgot to unregister irq when probe error.
Modified Paths
Diff
Modified: trunk/drivers/staging/iio/adc/ad7414.c (8497 => 8498)
--- trunk/drivers/staging/iio/adc/ad7414.c 2010-03-18 08:59:41 UTC (rev 8497)
+++ trunk/drivers/staging/iio/adc/ad7414.c 2010-03-18 09:00:37 UTC (rev 8498)
@@ -504,7 +504,7 @@
ret = ad7414_i2c_read(chip, AD7414_CONFIG, &config);
if (ret) {
ret = -EIO;
- goto error_unreg_dev;
+ goto error_unreg_irq;
}
if (irq_flags == IRQF_TRIGGER_HIGH)
@@ -515,7 +515,7 @@
config & ~AD7414_ALERT_POLARITY);
if (ret) {
ret = -EIO;
- goto error_unreg_dev;
+ goto error_unreg_irq;
}
}
@@ -523,7 +523,8 @@
id->name);
return 0;
-
+error_unreg_irq:
+ iio_unregister_interrupt_line(chip->indio_dev, 0);
error_unreg_dev:
iio_device_unregister(chip->indio_dev);
error_free_dev:
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits