]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: iio: ad9834: use dev_err_probe() in probe function
authorAngus Gardner <angusg778@gmail.com>
Mon, 4 May 2026 09:20:58 +0000 (19:20 +1000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:33 +0000 (10:59 +0100)
commit8b8e850eada20e96ef22621b87f58a72b69566cf
tree6b574541ef72d92d1630a182c2a9cda297dcf8eb
parent19f2c27251d86cf1272d475c52a190d01e9f996b
staging: iio: ad9834: use dev_err_probe() in probe function

Replace open-coded dev_err() + return sequences with dev_err_probe(),
which is the preferred pattern for probe error paths as it handles
deferred probing correctly and reduces boilerplate.

Convert all three remaining instances in ad9834_probe():
 - master clock enable failure
 - device init SPI sync failure

The avdd regulator path already used dev_err_probe().

Signed-off-by: Angus Gardner <angusg778@gmail.com>
Reviewed-by: Maxwell Doose <m32285159@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/frequency/ad9834.c