mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-16 09:29:30 -05:00
iio: addac: ad74413r: Remove redundant dev_err_probe()
Since commit
55b48e23f5 ("genirq/devres: Add error handling in devm_request_*_irq()"),
devm_request_irq() automatically logs detailed error messages on failure.
Remove the now-redundant driver-specific dev_err_probe() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
fc5040337a
commit
62fc8c097c
@@ -1457,7 +1457,7 @@ static int ad74413r_probe(struct spi_device *spi)
|
||||
ret = devm_request_irq(st->dev, spi->irq, ad74413r_adc_data_interrupt,
|
||||
0, st->chip_info->name, indio_dev);
|
||||
if (ret)
|
||||
return dev_err_probe(st->dev, ret, "Failed to request irq\n");
|
||||
return ret;
|
||||
|
||||
ret = devm_iio_triggered_buffer_setup(st->dev, indio_dev,
|
||||
&iio_pollfunc_store_time,
|
||||
|
||||
Reference in New Issue
Block a user