Message ID | 20230909143457.9149-3-jernej.skrabec@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | pinctrl: pinmux: Update error reporting in pin_request() | expand |
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 301fe0157b02..0ecd74ce5890 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -188,8 +188,8 @@ static int pin_request(struct pinctrl_dev *pctldev, } out: if (status) - dev_err(pctldev->dev, "pin-%d (%s) status %d\n", - pin, owner, status); + dev_err_probe(pctldev->dev, status, "pin-%d (%s)\n", + pin, owner); return status; }
Use dev_err_probe() when printing error message in pin_request() since it may fail with -EPROBE_DEFER. Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> --- drivers/pinctrl/pinmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)