From: Corey Minyard <cminyard@xxxxxxxxxx> It probably belongs there, and it will need access to the watchdog_pretimeout.h file when converted over to the standard watchdog interface. Signed-off-by: Corey Minyard <cminyard@xxxxxxxxxx> --- MAINTAINERS | 1 + drivers/char/ipmi/Kconfig | 5 ----- drivers/char/ipmi/Makefile | 1 - drivers/watchdog/Kconfig | 6 ++++++ drivers/watchdog/Makefile | 1 + drivers/{char/ipmi => watchdog}/ipmi_watchdog.c | 0 6 files changed, 8 insertions(+), 6 deletions(-) rename drivers/{char/ipmi => watchdog}/ipmi_watchdog.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 6426db5198f0..760bcf92fde1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8456,6 +8456,7 @@ F: Documentation/IPMI.txt F: drivers/char/ipmi/ F: include/linux/ipmi* F: include/uapi/linux/ipmi* +F: drivers/watchdog/ipmi_watchdog.c IPS SCSI RAID DRIVER M: Adaptec OEM Raid Solutions <aacraid@xxxxxxxxxxxxx> diff --git a/drivers/char/ipmi/Kconfig b/drivers/char/ipmi/Kconfig index 4bad0614109b..5f310ff0bd89 100644 --- a/drivers/char/ipmi/Kconfig +++ b/drivers/char/ipmi/Kconfig @@ -81,11 +81,6 @@ config IPMI_POWERNV help Provides a driver for OPAL firmware-based IPMI interfaces. -config IPMI_WATCHDOG - tristate 'IPMI Watchdog Timer' - help - This enables the IPMI watchdog timer. - config IPMI_POWEROFF tristate 'IPMI Poweroff' help diff --git a/drivers/char/ipmi/Makefile b/drivers/char/ipmi/Makefile index 0822adc2ec41..a9edcd473615 100644 --- a/drivers/char/ipmi/Makefile +++ b/drivers/char/ipmi/Makefile @@ -20,7 +20,6 @@ obj-$(CONFIG_IPMI_DMI_DECODE) += ipmi_dmi.o obj-$(CONFIG_IPMI_PLAT_DATA) += ipmi_plat_data.o obj-$(CONFIG_IPMI_SSIF) += ipmi_ssif.o obj-$(CONFIG_IPMI_POWERNV) += ipmi_powernv.o -obj-$(CONFIG_IPMI_WATCHDOG) += ipmi_watchdog.o obj-$(CONFIG_IPMI_POWEROFF) += ipmi_poweroff.o obj-$(CONFIG_IPMI_KCS_BMC) += kcs_bmc.o obj-$(CONFIG_ASPEED_BT_IPMI_BMC) += bt-bmc.o diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 3578b7bc863c..de462f995329 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -960,6 +960,12 @@ config STPMIC1_WATCHDOG To compile this driver as a module, choose M here: the module will be called spmic1_wdt. +config IPMI_WATCHDOG + tristate 'IPMI Watchdog Timer' + depends on IPMI_HANDLER + help + This enables the IPMI watchdog timer. + config UNIPHIER_WATCHDOG tristate "UniPhier watchdog support" depends on ARCH_UNIPHIER || COMPILE_TEST diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index 9cfe4ad32dc4..5840773bf2b4 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -225,3 +225,4 @@ obj-$(CONFIG_MENF21BMC_WATCHDOG) += menf21bmc_wdt.o obj-$(CONFIG_MENZ069_WATCHDOG) += menz69_wdt.o obj-$(CONFIG_RAVE_SP_WATCHDOG) += rave-sp-wdt.o obj-$(CONFIG_STPMIC1_WATCHDOG) += stpmic1_wdt.o +obj-$(CONFIG_IPMI_WATCHDOG) += ipmi_watchdog.o diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/watchdog/ipmi_watchdog.c similarity index 100% rename from drivers/char/ipmi/ipmi_watchdog.c rename to drivers/watchdog/ipmi_watchdog.c -- 2.17.1