aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/adc/ad7745.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-04-15 13:55:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-25 20:23:09 -0400
commit6f7c8ee585e9db54cb29af1bdb93f29837824933 (patch)
tree2eaf2ef782137ed1b9996c0fd511c40f1efb6625 /drivers/staging/iio/adc/ad7745.c
parentb428173316dcb4a518ee22c642671ae8a4bcec48 (diff)
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/adc/ad7745.c')
-rw-r--r--drivers/staging/iio/adc/ad7745.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7745.c b/drivers/staging/iio/adc/ad7745.c
index ab7ef8450ae..1373d23996b 100644
--- a/drivers/staging/iio/adc/ad7745.c
+++ b/drivers/staging/iio/adc/ad7745.c
@@ -635,7 +635,7 @@ static int __devinit ad774x_probe(struct i2c_client *client,
635 chip->client = client; 635 chip->client = client;
636 chip->name = id->name; 636 chip->name = id->name;
637 637
638 chip->indio_dev = iio_allocate_device(); 638 chip->indio_dev = iio_allocate_device(0);
639 if (chip->indio_dev == NULL) { 639 if (chip->indio_dev == NULL) {
640 ret = -ENOMEM; 640 ret = -ENOMEM;
641 goto error_free_chip; 641 goto error_free_chip;