commit | cc566e90cba70966b5c84ac373110d499b8be4ac | [log] [tgz] |
---|---|---|
author | Brian Masney <masneyb@onstation.org> | Thu May 10 20:12:17 2018 -0400 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat May 12 12:16:39 2018 +0100 |
tree | 78ab78adaccd19684e49a86fa42bbe9d2b62ac9d | |
parent | 7b4db2e3e64a4a6028ff8cd1682df67df92a3ad4 [diff] |
staging: iio: tsl2x7x: turn chip off if IIO device registration fails This patch turns the chip off if IIO device registration fails so that the error handling mirrors the device remove to make review easier in preparation for moving this driver out of staging. This patch also adds a missing error check in the call to tsl2x7x_chip_on() in tsl2x7x_probe(). Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>