Skip to content

Commit a0f4818

Browse files
committed
power: rpi-poe: FIXUP DRIVER.
Signed-off-by: Dave Stevenson <[email protected]>
1 parent 41534c3 commit a0f4818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/power/supply/rpi_poe_power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ static int rpi_poe_power_supply_probe(struct platform_device *pdev)
186186
if (device_property_read_u32(&pdev->dev, "reg", &ctx->offset))
187187
return -EINVAL;
188188
} else {
189-
fw_node = NULL; // hack xxx fwnode_find_reference(pdev->dev.fwnode, "firmware", 0);
189+
fw_node = of_find_compatible_node(NULL, NULL, "raspberrypi,bcm2835-firmware");
190190
if (!fw_node) {
191191
dev_err(&pdev->dev, "Missing firmware node\n");
192192
return -ENOENT;
193193
}
194194

195-
ctx->fw = NULL; // hack xxx rpi_firmware_get(fw_node);
195+
ctx->fw = rpi_firmware_get(fw_node);
196196
if (!ctx->fw)
197197
return -EPROBE_DEFER;
198198
if (rpi_firmware_property(ctx->fw,

0 commit comments

Comments
 (0)