diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-08 14:24:37 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-02-22 14:02:18 +0100 |
commit | ce3e7f0ee9a3d0c0ad5a88e21b7f8cdad3f2c156 (patch) | |
tree | e068a1342de0a92dd68b85150193faaa031805f4 /drivers/pinctrl | |
parent | 5da2bd5ad50671a76bbbf41ca797ccfae1f71214 (diff) |
pinctrl: ocelot: make function ocelot_pinctrl_probe static
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-ocelot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 01a50d969111..a9423238471e 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -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; |