mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
iio: gyro: adxrs290: 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: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
953587cc90
commit
a2a2c3afab
|
|
@ -585,9 +585,8 @@ static int adxrs290_probe_trigger(struct iio_dev *indio_dev)
|
|||
ret = devm_request_irq(&st->spi->dev, st->spi->irq,
|
||||
&iio_trigger_generic_data_rdy_poll,
|
||||
IRQF_NO_THREAD, "adxrs290_irq", st->dready_trig);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(&st->spi->dev, ret,
|
||||
"request irq %d failed\n", st->spi->irq);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = devm_iio_trigger_register(&st->spi->dev, st->dready_trig);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user