diff options
author | Jonathan Cameron | 2011-04-15 19:55:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-04-26 02:23:09 +0200 |
commit | 6f7c8ee585e9db54cb29af1bdb93f29837824933 (patch) | |
tree | 2eaf2ef782137ed1b9996c0fd511c40f1efb6625 /drivers/staging/iio/accel/adis16204_core.c | |
parent | staging:iio: replace rip_lots naming with read_first_n (diff) | |
download | kernel-qcow2-linux-6f7c8ee585e9db54cb29af1bdb93f29837824933.tar.gz kernel-qcow2-linux-6f7c8ee585e9db54cb29af1bdb93f29837824933.tar.xz kernel-qcow2-linux-6f7c8ee585e9db54cb29af1bdb93f29837824933.zip |
staging:iio: Add ability to allocate private data space to iio_allocate_device
Suggested by Arnd Bergmann. Note this will break ALL drivers that
are out of mainline. The fix is trivial change of
iio_allocate_device() -> iio_allocate_device(0)
Sorry if this causes issues for any one!
V2: Include new drivers in the update
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/adis16204_core.c')
-rw-r--r-- | drivers/staging/iio/accel/adis16204_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/adis16204_core.c b/drivers/staging/iio/accel/adis16204_core.c index cc15e40726fc..97376aa2fc54 100644 --- a/drivers/staging/iio/accel/adis16204_core.c +++ b/drivers/staging/iio/accel/adis16204_core.c @@ -493,7 +493,7 @@ static int __devinit adis16204_probe(struct spi_device *spi) st->us = spi; mutex_init(&st->buf_lock); /* setup the industrialio driver allocated elements */ - st->indio_dev = iio_allocate_device(); + st->indio_dev = iio_allocate_device(0); if (st->indio_dev == NULL) { ret = -ENOMEM; goto error_free_tx; |