Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90fe6c60 authored by Michal Simek's avatar Michal Simek Committed by Wim Van Sebroeck
Browse files

watchdog: xilinx: Read clock frequency directly from DT node



Do not use clock-frequency property from parent node.
Use it from watchdog node.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Acked-By: default avatarAlejandro Cabrera <acabrera@udio.cujae.edu.cu>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent c362cb59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ static int __devinit xwdt_probe(struct platform_device *pdev)

	no_timeout = 0;

	pfreq = (u32 *)of_get_property(pdev->dev.of_node->parent,
	pfreq = (u32 *)of_get_property(pdev->dev.of_node,
					"clock-frequency", NULL);

	if (pfreq == NULL) {