OSDN Git Service

pinctrl: ingenic: make function ingenic_pinctrl_probe static
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Oct 2017 10:11:37 +0000 (11:11 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Oct 2017 21:01:48 +0000 (23:01 +0200)
The function ingenic_pinctrl_probe is local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warnings
symbol 'ingenic_pinctrl_probe' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c

index d847618..372ddf3 100644 (file)
@@ -717,7 +717,7 @@ static const struct of_device_id ingenic_pinctrl_of_match[] = {
        {},
 };
 
-int ingenic_pinctrl_probe(struct platform_device *pdev)
+static int ingenic_pinctrl_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
        struct ingenic_pinctrl *jzpc;