staging:iio:ad2s1200 fix missing parenthesis in a for statment.
authorJimmy Li <coder.liss@gmail.com>
Fri, 25 Apr 2014 02:52:00 +0000 (03:52 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 26 Apr 2014 09:51:14 +0000 (10:51 +0100)
Signed-off-by: Jimmy Li <coder.liss@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1200.c

index e2b482045158dedb9101f6939b1c4d5dbe071f7d..017d2f8379b78ca86f7e30ed0e85855684c7b6ec 100644 (file)
@@ -107,7 +107,7 @@ static int ad2s1200_probe(struct spi_device *spi)
        int pn, ret = 0;
        unsigned short *pins = spi->dev.platform_data;
 
-       for (pn = 0; pn < AD2S1200_PN; pn++)
+       for (pn = 0; pn < AD2S1200_PN; pn++) {
                ret = devm_gpio_request_one(&spi->dev, pins[pn], GPIOF_DIR_OUT,
                                            DRV_NAME);
                if (ret) {
@@ -115,6 +115,7 @@ static int ad2s1200_probe(struct spi_device *spi)
                                                        pins[pn]);
                        return ret;
                }
+       }
        indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
        if (!indio_dev)
                return -ENOMEM;