staging: vchiq_arm: add missing of_node_put
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 31 Oct 2016 14:39:29 +0000 (14:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:05:47 +0000 (11:05 +0100)
After device_node usage the refcount must be decremented with
of_node_put().

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 20bdc7d..3bc1490 100644 (file)
@@ -2900,6 +2900,7 @@ static int vchiq_probe(struct platform_device *pdev)
        }
 
        fw = rpi_firmware_get(fw_node);
+       of_node_put(fw_node);
        if (!fw)
                return -EPROBE_DEFER;