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

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
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment