diff options
Diffstat (limited to 'drivers/staging/iio/resolver')
-rw-r--r-- | drivers/staging/iio/resolver/ad2s120x.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/resolver/ad2s1210.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/resolver/ad2s90.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/resolver/ad2s120x.c b/drivers/staging/iio/resolver/ad2s120x.c index 8f497a23976..e0237ff8105 100644 --- a/drivers/staging/iio/resolver/ad2s120x.c +++ b/drivers/staging/iio/resolver/ad2s120x.c | |||
@@ -240,7 +240,7 @@ static int __devinit ad2s120x_probe(struct spi_device *spi) | |||
240 | st->sample = pins[0]; | 240 | st->sample = pins[0]; |
241 | st->rdvel = pins[1]; | 241 | st->rdvel = pins[1]; |
242 | 242 | ||
243 | st->idev = iio_allocate_device(); | 243 | st->idev = iio_allocate_device(0); |
244 | if (st->idev == NULL) { | 244 | if (st->idev == NULL) { |
245 | ret = -ENOMEM; | 245 | ret = -ENOMEM; |
246 | goto error_free_st; | 246 | goto error_free_st; |
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index c12f64cc40d..dc7cae80cf3 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c | |||
@@ -800,7 +800,7 @@ static int __devinit ad2s1210_probe(struct spi_device *spi) | |||
800 | st->res0 = pins[3]; | 800 | st->res0 = pins[3]; |
801 | st->res1 = pins[4]; | 801 | st->res1 = pins[4]; |
802 | 802 | ||
803 | st->idev = iio_allocate_device(); | 803 | st->idev = iio_allocate_device(0); |
804 | if (st->idev == NULL) { | 804 | if (st->idev == NULL) { |
805 | ret = -ENOMEM; | 805 | ret = -ENOMEM; |
806 | goto error_free_st; | 806 | goto error_free_st; |
diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c index 4143535242d..e300adeefa8 100644 --- a/drivers/staging/iio/resolver/ad2s90.c +++ b/drivers/staging/iio/resolver/ad2s90.c | |||
@@ -90,7 +90,7 @@ static int __devinit ad2s90_probe(struct spi_device *spi) | |||
90 | mutex_init(&st->lock); | 90 | mutex_init(&st->lock); |
91 | st->sdev = spi; | 91 | st->sdev = spi; |
92 | 92 | ||
93 | st->idev = iio_allocate_device(); | 93 | st->idev = iio_allocate_device(0); |
94 | if (st->idev == NULL) { | 94 | if (st->idev == NULL) { |
95 | ret = -ENOMEM; | 95 | ret = -ENOMEM; |
96 | goto error_free_st; | 96 | goto error_free_st; |