Skip to content

Commit 77e7524

Browse files
andy-shevjic23
authored andcommitted
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>
1 parent 6982743 commit 77e7524

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/iio/magnetometer/ak8975.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,17 +583,14 @@ static int ak8975_setup_irq(struct ak8975_data *data)
583583
rc = devm_request_irq(&client->dev, irq, ak8975_irq_handler,
584584
IRQF_TRIGGER_RISING,
585585
dev_name(&client->dev), data);
586-
if (rc < 0) {
587-
dev_err(&client->dev, "irq %d request failed: %d\n", irq, rc);
586+
if (rc < 0)
588587
return rc;
589-
}
590588

591589
data->eoc_irq = irq;
592590

593591
return rc;
594592
}
595593

596-
597594
/*
598595
* Perform some start-of-day setup, including reading the asa calibration
599596
* values and caching them.

0 commit comments

Comments
 (0)