clk: bcm: rpi: Release firmware handle on unbind
[linux-2.6-microblaze.git] / drivers / clk / bcm / clk-raspberrypi.c
index f89b9cf..dd3b71e 100644 (file)
@@ -314,7 +314,7 @@ static int raspberrypi_clk_probe(struct platform_device *pdev)
                return -ENOENT;
        }
 
-       firmware = rpi_firmware_get(firmware_node);
+       firmware = devm_rpi_firmware_get(&pdev->dev, firmware_node);
        of_node_put(firmware_node);
        if (!firmware)
                return -EPROBE_DEFER;