]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: frequency: admv4420: use dev_err_probe
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 13 Mar 2026 11:57:42 +0000 (13:57 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 21:12:24 +0000 (21:12 +0000)
commit7428168fe1615423685fa61e4d38bd2e20f14ebd
tree939907f6683a558c6ba6412ad2b30bd6eae92351
parente81f3889c2e29351d67d779b6731bbbc602b5d5f
iio: frequency: admv4420: use dev_err_probe

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Also fix the format specifier for vco_freq_hz from %lld to %llu since
it is u64 (unsigned), and add missing newline to the error message.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/admv4420.c