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:
parent
c362cb597b
commit
90fe6c608f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue