]> git.sur5r.net Git - u-boot/blobdiff - drivers/watchdog/wdt-uclass.c
dwc2 USB controller hangs with lan78xx
[u-boot] / drivers / watchdog / wdt-uclass.c
index ab8a64c354a59dfbf91634c054d1645f8e82535a..4a619f71fe910b7a18c6e37d7f0fe13e37423c91 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2017 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
-int wdt_start(struct udevice *dev, u64 timeout, ulong flags)
+int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags)
 {
        const struct wdt_ops *ops = device_get_ops(dev);
 
        if (!ops->start)
                return -ENOSYS;
 
-       return ops->start(dev, timeout, flags);
+       return ops->start(dev, timeout_ms, flags);
 }
 
 int wdt_stop(struct udevice *dev)
@@ -48,7 +45,7 @@ int wdt_expire_now(struct udevice *dev, ulong flags)
        int ret = 0;
        const struct wdt_ops *ops;
 
-       debug("WDT Resettting: %lu\n", flags);
+       debug("WDT Resetting: %lu\n", flags);
        ops = device_get_ops(dev);
        if (ops->expire_now) {
                return ops->expire_now(dev, flags);