]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/watchdog/watchdog_core.c
nfp: add a stats handler for flower offloads
[karo-tx-linux.git] / drivers / watchdog / watchdog_core.c
index 6abb83cd7681034db7b3ca64ef41d7e6455112c2..74265b2f806ca24d4eda05ef860e8092ef1afe1d 100644 (file)
@@ -349,7 +349,7 @@ int devm_watchdog_register_device(struct device *dev,
        struct watchdog_device **rcwdd;
        int ret;
 
-       rcwdd = devres_alloc(devm_watchdog_unregister_device, sizeof(*wdd),
+       rcwdd = devres_alloc(devm_watchdog_unregister_device, sizeof(*rcwdd),
                             GFP_KERNEL);
        if (!rcwdd)
                return -ENOMEM;