Commit ce38cdc9 authored by Chris Packham's avatar Chris Packham Committed by Sebastian Reichel
Browse files

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: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20241015225948.3971924-3-chris.packham@alliedtelesis.co.nz


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent e7af7d13
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ static int syscon_reboot_probe(struct platform_device *pdev)
		priority = 192;

	if (of_property_read_u32(pdev->dev.of_node, "offset", &ctx->offset))
		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);