]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d7afa34f5c1feaf1fa60a6c9c2c9abc364f88de
treefcf807a54f4f1f200587a86802dd5c2e95222865
parent52baab25b5f411856e6c5311e87cc456a5b48531
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