mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
gpio: nomadik: add missing dev_err() call on chip populate failure
All error paths of nmk_gpio_populate_chip() lead to logging errors but this one (ignoring the alloc or ioremap failures that must not log). Add the single missing dev_err() call. Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260701-gpio-nomadik-silent-v1-2-644d10316cef@bootlin.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
6dd9672a16
commit
2123813511
|
|
@ -578,6 +578,7 @@ struct nmk_gpio_chip *nmk_gpio_populate_chip(struct fwnode_handle *fwnode,
|
|||
clk = clk_get_optional(gpio_dev, NULL);
|
||||
if (IS_ERR(clk)) {
|
||||
ret = PTR_ERR(clk);
|
||||
dev_err(dev, "failed getting clock: %d\n", ret);
|
||||
goto err_put_pdev;
|
||||
}
|
||||
clk_prepare(clk);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user