Skip to content

Commit

Permalink
watchdog: xilinx: Read clock frequency directly from DT node
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek authored and Wim Van Sebroeck committed Jul 23, 2012
1 parent c362cb5 commit 90fe6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/of_xilinx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 90fe6c6

Please sign in to comment.