Skip to contentSkip to conversation

pinctrl: ocelot: make function ocelot_pinctrl_probe static

PATCH In review Colin King 2 participants 2 messages Feb 8, 2018 – Feb 22, 2018

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 pinctrl: ocelot: make function ocelot_pinctrl_probe static

From: Colin Ian King <[email protected]>

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?

---
 drivers/pinctrl/pinctrl-ocelot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-ocelot.c +1 -1
index 01a50d969111..a9423238471e 100644
@@ -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;
Signature · 1 line
2.15.1
#1 lore raw
Quoted 10 lines · Colin King

From: Colin Ian King <[email protected]>

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?

Patch applied.

Yours,
Linus Walleij