提交 90fe6c60 编写于 作者: M Michal Simek 提交者: 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: NMichal Simek <monstr@monstr.eu>
Acked-By: NAlejandro Cabrera <acabrera@udio.cujae.edu.cu>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册