pinctrl: pinmux: Remove duplicate error message in pin_request()
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sat, 9 Sep 2023 06:36:12 +0000 (08:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Sep 2023 08:16:14 +0000 (10:16 +0200)
Detailed error message is already printed at the end of the function, so
drop redundant one a few lines earlier.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230909063613.2867-2-jernej.skrabec@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c

index 2a180a5d64a4ad89836b2b5e1e98280848ed9012..301fe0157b028bd4c3cf57838eef23e94550f8b7 100644 (file)
@@ -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) {