iio: temperature: Remove redundant dev_err()/dev_err_probe()

Since commit
55b48e23f5 ("genirq/devres: Add error handling in devm_request_*_irq()"),
devm_request_irq() and devm_request_threaded_irq() automatically log
detailed error messages on failure. Remove the now-redundant
driver-specific dev_err() and 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:
Pan Chuang 2026-07-24 11:03:48 +08:00 committed by Jonathan Cameron
parent 9cf89c342b
commit e7dddb2a85
2 changed files with 2 additions and 4 deletions

View File

@ -1994,7 +1994,7 @@ static int ltc2983_probe(struct spi_device *spi)
ret = devm_request_irq(dev, spi->irq, ltc2983_irq_handler,
IRQF_TRIGGER_RISING, st->info->name, st);
if (ret)
return dev_err_probe(dev, ret, "failed to request an irq\n");
return ret;
if (st->info->has_eeprom) {
ret = ltc2983_eeprom_cmd(st, LTC2983_EEPROM_WRITE_CMD,

View File

@ -527,10 +527,8 @@ static int tmp007_probe(struct i2c_client *client)
NULL, tmp007_interrupt_handler,
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
tmp007_id->name, indio_dev);
if (ret) {
dev_err(&client->dev, "irq request error %d\n", -ret);
if (ret)
return ret;
}
}
return devm_iio_device_register(&client->dev, indio_dev);