mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: magnetometer: Remove redundant dev_err()
Since commit
55b48e23f5 ("genirq/devres: Add error handling in devm_request_*_irq()"),
devm_request_threaded_irq() automatically logs detailed error messages on
failure. Remove the now-redundant driver-specific dev_err() 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:
parent
40d5ff6a6c
commit
b182dbeda9
|
|
@ -926,11 +926,8 @@ static int ak8974_probe(struct i2c_client *i2c)
|
|||
irq_trig,
|
||||
ak8974->name,
|
||||
ak8974);
|
||||
if (ret) {
|
||||
dev_err(&i2c->dev, "unable to request DRDY IRQ "
|
||||
"- proceeding without IRQ\n");
|
||||
if (ret)
|
||||
goto no_irq;
|
||||
}
|
||||
ak8974->drdy_irq = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -568,10 +568,8 @@ int rm3100_common_probe(struct device *dev, struct regmap *regmap, int irq)
|
|||
IRQF_ONESHOT,
|
||||
indio_dev->name,
|
||||
indio_dev);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "request irq line failed.\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
data->drdy_trig = devm_iio_trigger_alloc(dev, "%s-drdy%d",
|
||||
indio_dev->name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user