mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
pinctrl: airoha: Remove redundant dev_err()
Since commit 55b48e23f5 ("genirq/devres: Add error handling in
devm_request_*_irq()"), devm_request_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>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
parent
6f00e157a1
commit
cd6c277c70
|
|
@ -2519,10 +2519,8 @@ static int airoha_pinctrl_add_gpiochip(struct airoha_pinctrl *pinctrl,
|
|||
|
||||
err = devm_request_irq(dev, irq, airoha_irq_handler, IRQF_SHARED,
|
||||
dev_name(dev), pinctrl);
|
||||
if (err) {
|
||||
dev_err(dev, "error requesting irq %d: %d\n", irq, err);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
||||
return devm_gpiochip_add_data(dev, gc, pinctrl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user