hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/watchdog/diag288_wdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Watchdog driver for z/VM and LPAR using the diag 288 interface.
34 *
....@@ -25,13 +26,11 @@
2526 #include <linux/module.h>
2627 #include <linux/moduleparam.h>
2728 #include <linux/slab.h>
28
-#include <linux/miscdevice.h>
2929 #include <linux/watchdog.h>
3030 #include <linux/suspend.h>
3131 #include <asm/ebcdic.h>
3232 #include <asm/diag.h>
3333 #include <linux/io.h>
34
-#include <linux/uaccess.h>
3534
3635 #define MAX_CMDLEN 240
3736 #define DEFAULT_CMD "SYSTEM RESTART"
....@@ -69,7 +68,6 @@
6968 module_param_named(nowayout, nowayout_info, bool, 0444);
7069 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default = CONFIG_WATCHDOG_NOWAYOUT)");
7170
72
-MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
7371 MODULE_ALIAS("vmwatchdog");
7472
7573 static int __diag288(unsigned int func, unsigned int timeout,