diff --git a/drivers/staging/iio/adc/ad7606_core.c b/drivers/staging/iio/adc/ad7606_core.c index 7ea5232c7cea..02b0a5b1e123 100644 --- a/drivers/staging/iio/adc/ad7606_core.c +++ b/drivers/staging/iio/adc/ad7606_core.c @@ -329,9 +329,8 @@ static int ad7606_request_gpios(struct ad7606_state *st) } ret = gpio_request_array(gpio_array, ARRAY_SIZE(gpio_array)); - if (!ret) { + if (!ret) st->have_os = true; - } ret = gpio_request_one(st->pdata->gpio_reset, GPIOF_OUT_INIT_LOW, "AD7606_RESET");