On 10/06/11 07:15, Dan Carpenter wrote: > We need to unlock here before returning. Thanks > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Jonathan Cameron <jic23@xxxxxxxxx> > > diff --git a/drivers/staging/iio/light/tsl2563.c b/drivers/staging/iio/light/tsl2563.c > index 3707772..8977f58 100644 > --- a/drivers/staging/iio/light/tsl2563.c > +++ b/drivers/staging/iio/light/tsl2563.c > @@ -518,7 +518,8 @@ static int tsl2563_read_raw(struct iio_dev *indio_dev, > ret = IIO_VAL_INT; > break; > default: > - return -EINVAL; > + ret = -EINVAL; > + goto error_ret; > } > > error_ret: > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel