dect
/
linux-2.6
Archived
13
0
Fork 0

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: Michal Simek <monstr@monstr.eu>
Acked-By: Alejandro Cabrera <acabrera@udio.cujae.edu.cu>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Michal Simek 2012-06-21 08:45:40 +02:00 committed by Wim Van Sebroeck
parent c362cb597b
commit 90fe6c608f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {