Commit c9336ebe authored by Jernej Skrabec's avatar Jernej Skrabec Committed by Linus Walleij

pinctrl: pinmux: Remove duplicate error message in pin_request()

Detailed error message is already printed at the end of the function, so
drop redundant one a few lines earlier.
Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230909063613.2867-2-jernej.skrabec@gmail.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 70a3894c
......@@ -173,10 +173,8 @@ static int pin_request(struct pinctrl_dev *pctldev,
else
status = 0;
if (status) {
dev_err(pctldev->dev, "request() failed for pin %d\n", pin);
if (status)
module_put(pctldev->owner);
}
out_free_pin:
if (status) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment