Title: [8496] trunk/drivers/staging/iio/adc/adt75.c: Task[#5912] forgot to unregister irq when probe error.
- Revision
- 8496
- Author
- sonicz
- Date
- 2010-03-18 04:56:07 -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/adt75.c (8495 => 8496)
--- trunk/drivers/staging/iio/adc/adt75.c 2010-03-18 08:33:52 UTC (rev 8495)
+++ trunk/drivers/staging/iio/adc/adt75.c 2010-03-18 08:56:07 UTC (rev 8496)
@@ -667,7 +667,7 @@
ret = adt75_i2c_read(chip, ADT75_CONFIG, &chip->config);
if (ret) {
ret = -EIO;
- goto error_unreg_dev;
+ goto error_unreg_irq;
}
if (irq_flags == IRQF_TRIGGER_HIGH)
@@ -678,7 +678,7 @@
ret = adt75_i2c_write(chip, ADT75_CONFIG, chip->config);
if (ret) {
ret = -EIO;
- goto error_unreg_dev;
+ goto error_unreg_irq;
}
}
@@ -686,7 +686,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