On 08/03/11 16:34, gre...@suse.de wrote:
> 
> The patch below does not apply to the 3.0-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <sta...@kernel.org>.
After all that this is actually a false bug fix (fixes a bug that isn't there).
Sorry for all the noise everyone.  It doesn't do any harm so no need to revert
in mainline.

Turns out that driver just does things in a different order to every other one.

Sorry all!

Jonathan
> 
> thanks,
> 
> greg k-h
> 
> ------------------ original commit in Linus's tree ------------------
> 
> From 7bcf302ff151da6559261bc73e8b9d1ae31cc0bb Mon Sep 17 00:00:00 2001
> From: Jonathan Cameron <ji...@cam.ac.uk>
> Date: Fri, 1 Jul 2011 11:13:36 +0100
> Subject: [PATCH] staging:iio:gyro:adis16260 fix missing num_channels setup.
> 
> Signed-off-by: Jonathan Cameron <ji...@cam.ac.uk>
> Cc: stable <sta...@kernel.org>  [3.0]
> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de>
> 
> diff --git a/drivers/staging/iio/gyro/adis16260_core.c 
> b/drivers/staging/iio/gyro/adis16260_core.c
> index 801c820..05797f4 100644
> --- a/drivers/staging/iio/gyro/adis16260_core.c
> +++ b/drivers/staging/iio/gyro/adis16260_core.c
> @@ -615,7 +615,7 @@ static int __devinit adis16260_probe(struct spi_device 
> *spi)
>               }
>       else
>               indio_dev->channels = adis16260_channels_x;
> -
> +     indio_dev->num_channels = ARRAY_SIZE(adis16260_channels_x);
>       indio_dev->modes = INDIO_DIRECT_MODE;
>  
>       ret = adis16260_configure_ring(indio_dev);
> 

_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to