mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
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 <chris.packham@alliedtelesis.co.nz> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20241015225948.3971924-3-chris.packham@alliedtelesis.co.nz Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
e7af7d1331
commit
ce38cdc908
@ -61,7 +61,8 @@ static int syscon_reboot_probe(struct platform_device *pdev)
|
||||
priority = 192;
|
||||
|
||||
if (of_property_read_u32(pdev->dev.of_node, "offset", &ctx->offset))
|
||||
return -EINVAL;
|
||||
if (of_property_read_u32(pdev->dev.of_node, "reg", &ctx->offset))
|
||||
return -EINVAL;
|
||||
|
||||
value_err = of_property_read_u32(pdev->dev.of_node, "value", &ctx->value);
|
||||
mask_err = of_property_read_u32(pdev->dev.of_node, "mask", &ctx->mask);
|
||||
|
Loading…
Reference in New Issue
Block a user