summaryrefslogtreecommitdiff
path: root/drivers/iio/light/cm3232.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/cm3232.c')
-rw-r--r--drivers/iio/light/cm3232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c
index fe89b6823217..263e97235ea0 100644
--- a/drivers/iio/light/cm3232.c
+++ b/drivers/iio/light/cm3232.c
@@ -119,7 +119,7 @@ static int cm3232_reg_init(struct cm3232_chip *chip)
if (ret < 0)
dev_err(&chip->client->dev, "Error writing reg_cmd\n");
- return 0;
+ return ret;
}
/**