projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WATCHDOG] gef_wdt.c: fsl_get_sys_freq() failure not noticed
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
watchdog
/
gef_wdt.c
diff --git
a/drivers/watchdog/gef_wdt.c
b/drivers/watchdog/gef_wdt.c
index f0c2b7a1a175b0d23bbaec7878f8da9e5d8b2768..734d9806a872bc300ad756ab7978192025a58f37 100644
(file)
--- a/
drivers/watchdog/gef_wdt.c
+++ b/
drivers/watchdog/gef_wdt.c
@@
-269,7
+269,7
@@
static int __devinit gef_wdt_probe(struct of_device *dev,
bus_clk = 133; /* in MHz */
freq = fsl_get_sys_freq();
- if (freq
> 0
)
+ if (freq
!= -1
)
bus_clk = freq;
/* Map devices registers into memory */