commit | 794e20ee038ea368f3f099d196792b024fb3170c | [log] [tgz] |
---|---|---|
author | Slawomir Stepien <sst@poczta.fm> | Sun Dec 02 12:42:35 2018 +0100 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Dec 02 15:36:28 2018 +0000 |
tree | 65f78c44b966af12ffc204b01533681155205a0d | |
parent | 53e8785c248df097364b75e550d06bbc58db8af8 [diff] |
staging: iio: adc: ad7280a: fix overwrite of the returned value The ret returned from ad7280_chain_setup() is needed to initialize the slave_num. Don't overwrite it with call to devm_add_action_or_reset(). Fixes: cc9c58ef6e06 ("staging: iio: adc: ad7280a: use devm_* APIs") Signed-off-by: Slawomir Stepien <sst@poczta.fm> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>