staging: iio: ad7780: move regulator to after GPIO init
authorRenato Lui Geh <renatogeh@gmail.com>
Sat, 16 Mar 2019 02:14:59 +0000 (23:14 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:04 +0000 (20:20 +0100)
commit5bb30e7daf00d3b655585cdeca87ba27af7fd066
tree34eb7da2e4622520b80054c2f3024e4d51aaa061
parent4812a14a78c82cfe81cb5fd7555a9de723b49a59
staging: iio: ad7780: move regulator to after GPIO init

To maintain consistency between ad7780_probe and ad7780_remove orders,
regulator initialization has been moved to after GPIO initializations.

Signed-off-by: Renato Lui Geh <renatogeh@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c