Skip to contentSkip to conversation

backlight: 88pm860x_bl: Add missing of_node_put()

PATCH Superseded Axel Lin 1 participant 1 message Jan 27, 2013

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 backlight: 88pm860x_bl: Add missing of_node_put()

of_find_node_by_name() returns a node pointer with refcount incremented, use of_node_put() on it when done.

---
 drivers/video/backlight/88pm860x_bl.c |    1 +
 1 file changed, 1 insertion(+)
drivers/video/backlight/88pm860x_bl.c +1 -0
index c072ed9..4d2782f 100644
@@ -184,6 +184,7 @@ static int pm860x_backlight_dt_init(struct platform_device *pdev,
 			break;
 		}
 	}
+	of_node_put(nproot);
 	return 0;
 }
 #else
Signature · 1 line
1.7.9.5