mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
iio: magnetometer: ak8975: remove duplicate error message
The devm_request_irq() already prints an error message. Remove the duplicate. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
6982743df9
commit
77e7524944
|
|
@ -583,17 +583,14 @@ static int ak8975_setup_irq(struct ak8975_data *data)
|
|||
rc = devm_request_irq(&client->dev, irq, ak8975_irq_handler,
|
||||
IRQF_TRIGGER_RISING,
|
||||
dev_name(&client->dev), data);
|
||||
if (rc < 0) {
|
||||
dev_err(&client->dev, "irq %d request failed: %d\n", irq, rc);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
}
|
||||
|
||||
data->eoc_irq = irq;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Perform some start-of-day setup, including reading the asa calibration
|
||||
* values and caching them.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user