Commit 90fe6c608f8d46e5bb3f31c2d5e1c90475253f79

Authored by Michal Simek
Committed by Wim Van Sebroeck
1 parent c362cb597b

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/watchdog/of_xilinx_wdt.c
... ... @@ -297,7 +297,7 @@
297 297  
298 298 no_timeout = 0;
299 299  
300   - pfreq = (u32 *)of_get_property(pdev->dev.of_node->parent,
  300 + pfreq = (u32 *)of_get_property(pdev->dev.of_node,
301 301 "clock-frequency", NULL);
302 302  
303 303 if (pfreq == NULL) {