diff options
| author | Michal Simek <monstr@monstr.eu> | 2012-06-21 02:45:40 -0400 |
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2012-07-23 06:47:00 -0400 |
| commit | 90fe6c608f8d46e5bb3f31c2d5e1c90475253f79 (patch) | |
| tree | 22b063eed6e76f2223c073a5cf384b1f5618b559 | |
| parent | c362cb597b5c30a32f4228136e0dfd9bf4c5d65b (diff) | |
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>
| -rw-r--r-- | drivers/watchdog/of_xilinx_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index 55d2f66dbeae..294fb4e00521 100644 --- a/drivers/watchdog/of_xilinx_wdt.c +++ b/drivers/watchdog/of_xilinx_wdt.c | |||
| @@ -297,7 +297,7 @@ static int __devinit xwdt_probe(struct platform_device *pdev) | |||
| 297 | 297 | ||
| 298 | no_timeout = 0; | 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 | "clock-frequency", NULL); | 301 | "clock-frequency", NULL); |
| 302 | 302 | ||
| 303 | if (pfreq == NULL) { | 303 | if (pfreq == NULL) { |
