pinctrl: falcon: fix syntax error
Subsystems (3)
PATCH 1/1 pinctrl: falcon: fix syntax error
Add the missing semicolon after of_node_put to get the file compiled.
Fixes f17d2f54d36d ("pinctrl: falcon: Add of_node_put() before return")
Cc [email protected] # v5.4+
Signed-off-by Mathias Kresin <[email protected]>
--- drivers/pinctrl/pinctrl-falcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-falcon.c +1 -1
@@ -451,7 +451,7 @@ static int pinctrl_falcon_probe(struct platform_device *pdev) falcon_info.clk[*bank] =clk_get (&ppdev->dev,NULL );if (IS_ERR (falcon_info.clk[*bank])) {dev_err (&ppdev->dev,"failed to get clock\n" ); -of_node_put (np) +of_node_put (np);return PTR_ERR (falcon_info.clk[*bank]); } falcon_info.membase[*bank] = devm_ioremap_resource(&pdev->dev,
Signature · 1 line
2.17.1
Quoted 11 lines
-----Original Message-----
From: [email protected] <linux-gpio- [email protected]> On Behalf Of Mathias Kresin
Sent: Donnerstag, 5. März 2020 19:23
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: [PATCH] pinctrl: falcon: fix syntax error
Quoted 6 lines
Add the missing semicolon after
of_node_putto get the file compiled.Fixes f17d2f54d36d ("pinctrl: falcon: Add of_node_put() beforereturn")
Cc [email protected] # v5.4+Signed-off-by Mathias Kresin <[email protected]>
Acked-by Thomas Langer <[email protected]>
Quoted 22 lines
--- drivers/pinctrl/pinctrl-falcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pinctrl/pinctrl-falcon.c +1
-1@@ -451,7 +451,7 @@ static int pinctrl_falcon_probe(struct platform_device *pdev) falcon_info.clk[*bank] = clk_get(&ppdev->dev, NULL);if (IS_ERR (falcon_info.clk[*bank])) {dev_err (&ppdev->dev,"failed to get clock\n" ); -of_node_put (np) +of_node_put (np);return PTR_ERR (falcon_info.clk[*bank]); }falcon_info.membase[*bank] = devm_ioremap_resource(&pdev-
Quoted 1 line
dev,
--
2.17.1
Quoted 5 lines · Mathias Kresin
Add the missing semicolon after
of_node_putto get the file compiled.Fixes f17d2f54d36d ("pinctrl: falcon: Add of_node_put() before return")Cc [email protected] # v5.4+Signed-off-by Mathias Kresin <[email protected]>
Patch applied for fixes with Thomas Ack.
Yours,
Linus Walleij