[PATCH v4 10/17] iio: magnetometer: ak8975: remove duplicate error message

Joshua Crofts via B4 Relay
2026-05-04T09:48:35Z

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

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>
---
drivers/iio/magnetometer/ak8975.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index b94b0486421873a4afa41949d956e0bb5dafdb9d..c354ebaba11c86c24ebe2dbc2b20c11f18015151 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -584,17 +584,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.

--
2.47.3