pinctrl: ocelot: make function ocelot_pinctrl_probe static
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Feb 2018 14:24:37 +0000 (14:24 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 Feb 2018 13:02:18 +0000 (14:02 +0100)
The function ocelot_pinctrl_probe is local to the source and does not
need to be in global scope, so make it static.

Cleans up sparse warning:
drivers/pinctrl/pinctrl-ocelot.c:465:5: warning: symbol
'ocelot_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-ocelot.c

index 01a50d969111997da994f0b4d27f116205e9a95f..a9423238471eeb479709bf2cf07f0bdb9891d556 100644 (file)
@@ -462,7 +462,7 @@ static const struct of_device_id ocelot_pinctrl_of_match[] = {
        {},
 };
 
-int ocelot_pinctrl_probe(struct platform_device *pdev)
+static int ocelot_pinctrl_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
        struct ocelot_pinctrl *info;