mips: ralink: add missing of_node_put() call in ill_acc_of_setup()
Subsystems (2)
PATCH 1/1 mips: ralink: add missing of_node_put() call in ill_acc_of_setup()
From: Wang Qing <[email protected]>
of_find_compatible_node() takes a reference to the device_node which needs to be dropped when done.
Signed-off-by Wang Qing <[email protected]>
--- arch/mips/ralink/ill_acc.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/ralink/ill_acc.c +1 -0
@@ -65,6 +65,7 @@ static int __init ill_acc_of_setup(void) } irq =irq_of_parse_and_map (np,0 ); +of_node_put (np);if (!irq) {dev_err (&pdev->dev,"failed to get irq\n" );put_device (&pdev->dev);
Signature · 1 line
2.7.4