staging: iio: ad2s1200: Setup spi before iio device register
authorDavid Veenstra <davidjulianveenstra@gmail.com>
Fri, 18 May 2018 18:21:44 +0000 (20:21 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 May 2018 10:54:43 +0000 (11:54 +0100)
commit94cdefa81b99dd37239cdb147bc5a1473a3cdacc
treefcf807a54f4f1f200587a86802dd5c2e95222865
parentbc683b47c31d68050fd1cd5231804c3be2df1766
staging: iio: ad2s1200: Setup spi before iio device register

The spi should be set up before the device is registered as an iio
device.

This patch moves the setup to before the device registration.

Signed-off-by: David Veenstra <davidjulianveenstra@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1200.c