File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
#include <linux/init.h> /* For __init/__exit/... */
34
34
#include <linux/idr.h> /* For ida_* macros */
35
35
#include <linux/err.h> /* For IS_ERR macros */
36
- #include <linux/of.h> /* For of_get_timeout_sec */
36
+ #include <linux/of.h> /* For of_alias_get_id */
37
+ #include <linux/property.h> /* For device_property_read_u32 */
37
38
#include <linux/suspend.h>
38
39
39
40
#include "watchdog_core.h" /* For watchdog_dev_register/... */
@@ -137,8 +138,7 @@ int watchdog_init_timeout(struct watchdog_device *wdd,
137
138
}
138
139
139
140
/* try to get the timeout_sec property */
140
- if (dev && dev -> of_node &&
141
- of_property_read_u32 (dev -> of_node , "timeout-sec" , & t ) == 0 ) {
141
+ if (dev && device_property_read_u32 (dev , "timeout-sec" , & t ) == 0 ) {
142
142
if (t && !watchdog_timeout_invalid (wdd , t )) {
143
143
wdd -> timeout = t ;
144
144
return 0 ;
You can’t perform that action at this time.
0 commit comments