staging: vc04_services: Replace "firmware" node with a compatible lookup.
authorEric Anholt <eric@anholt.net>
Fri, 9 Mar 2018 18:44:12 +0000 (10:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2018 12:01:17 +0000 (13:01 +0100)
This was requested by Rob Herring in DT bindings review.

Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-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 f5cefda49b2258614755e0ae1da706b5b822b663..8068c0308b343a933a109aa50f8240c001026cc7 100644 (file)
@@ -3594,7 +3594,8 @@ static int vchiq_probe(struct platform_device *pdev)
        struct rpi_firmware *fw;
        int err;
 
-       fw_node = of_parse_phandle(pdev->dev.of_node, "firmware", 0);
+       fw_node = of_find_compatible_node(NULL, NULL,
+                                         "raspberrypi,bcm2835-firmware");
        if (!fw_node) {
                dev_err(&pdev->dev, "Missing firmware node\n");
                return -ENOENT;