Skip to content

Commit ce38cdc

Browse files
cpackham-atlnzsre
authored andcommitted
power: reset: syscon-reboot: Accept reg property
For historical reasons syscon-reboot has used an 'offset' property. As a child on a MMIO bus having a 'reg' property is more appropriate. Accept 'reg' as an alternative to 'offset'. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent e7af7d1 commit ce38cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/power/reset/syscon-reboot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ static int syscon_reboot_probe(struct platform_device *pdev)
6161
priority = 192;
6262

6363
if (of_property_read_u32(pdev->dev.of_node, "offset", &ctx->offset))
64-
return -EINVAL;
64+
if (of_property_read_u32(pdev->dev.of_node, "reg", &ctx->offset))
65+
return -EINVAL;
6566

6667
value_err = of_property_read_u32(pdev->dev.of_node, "value", &ctx->value);
6768
mask_err = of_property_read_u32(pdev->dev.of_node, "mask", &ctx->mask);

0 commit comments

Comments
 (0)