aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-03-09 10:44:12 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-14 13:01:17 +0100
commit45b7c73226541e39ca4d6f3c5987aa1db2fb054c (patch)
treee1a5e6e6e6814c7b7cba09cbad4c4556584b8c97 /drivers/staging
parentstaging: rtl8723bs: core: rtw_cmd: remove unnecessary initialization (diff)
downloadlinux-dev-45b7c73226541e39ca4d6f3c5987aa1db2fb054c.tar.xz
linux-dev-45b7c73226541e39ca4d6f3c5987aa1db2fb054c.zip
staging: vc04_services: Replace "firmware" node with a compatible lookup.
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
index f5cefda49b22..8068c0308b34 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
@@ -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;