iio: adc: aspeed: Fix error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 8 Jan 2018 06:47:36 +0000 (07:47 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jan 2018 11:01:13 +0000 (11:01 +0000)
commit787e1853ae8a951233ceab1b01c862d9c668358b
treed462f9010aaab08056fc3b4327d4412dcef05520
parenta66a4e8e01f3b607a9aa5b5ed9ca588b4c3a962e
iio: adc: aspeed: Fix error handling path

The labels and branching order of the error path of 'aspeed_adc_probe()'
are broken.
Re-order the labels and goto statements.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c