efi_loader: SetMode() parameters check
[platform/kernel/u-boot.git] / drivers / watchdog / sandbox_wdt.c
index 34d90be..e05d827 100644 (file)
@@ -1,15 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2017 Google, Inc
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <dm.h>
-#include <asm/state.h>
 #include <wdt.h>
-
-DECLARE_GLOBAL_DATA_PTR;
+#include <asm/state.h>
 
 static int sandbox_wdt_start(struct udevice *dev, u64 timeout, ulong flags)
 {
@@ -46,15 +43,6 @@ static int sandbox_wdt_expire_now(struct udevice *dev, ulong flags)
        return 0;
 }
 
-static int sandbox_wdt_probe(struct udevice *dev)
-{
-       struct sandbox_state *state = state_get_current();
-
-       memset(&state->wdt, 0, sizeof(state->wdt));
-
-       return 0;
-}
-
 static const struct wdt_ops sandbox_wdt_ops = {
        .start = sandbox_wdt_start,
        .reset = sandbox_wdt_reset,
@@ -72,5 +60,4 @@ U_BOOT_DRIVER(wdt_sandbox) = {
        .id = UCLASS_WDT,
        .of_match = sandbox_wdt_ids,
        .ops = &sandbox_wdt_ops,
-       .probe = sandbox_wdt_probe,
 };