Commit 34cdf699 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[WATCHDOG] make wdt_pci.c independant of wdt.c

parent 926da5aa
...@@ -68,6 +68,24 @@ config WDT ...@@ -68,6 +68,24 @@ config WDT
say M here and read <file:Documentation/modules.txt>. The module say M here and read <file:Documentation/modules.txt>. The module
will be called wdt. will be called wdt.
config WDT_501
bool "WDT501 features"
depends on WDT
help
Saying Y here and creating a character special file /dev/temperature
with major number 10 and minor number 131 ("man mknod") will give
you a thermometer inside your computer: reading from
/dev/temperature yields one byte, the temperature in degrees
Fahrenheit. This works only if you have a WDT501P watchdog board
installed.
config WDT_501_FAN
bool "Fan Tachometer"
depends on WDT_501
help
Enable the Fan Tachometer on the WDT501. Only do this if you have a
fan tachometer actually set up.
config WDTPCI config WDTPCI
tristate "WDT PCI Watchdog timer" tristate "WDT PCI Watchdog timer"
depends on WATCHDOG depends on WATCHDOG
...@@ -84,9 +102,9 @@ config WDTPCI ...@@ -84,9 +102,9 @@ config WDTPCI
say M here and read <file:Documentation/modules.txt>. The module say M here and read <file:Documentation/modules.txt>. The module
will be called wdt_pci. will be called wdt_pci.
config WDT_501 config WDT_501_PCI
bool "WDT501 features" bool "WDT501-PCI features"
depends on WDT depends on WDTPCI
help help
Saying Y here and creating a character special file /dev/temperature Saying Y here and creating a character special file /dev/temperature
with major number 10 and minor number 131 ("man mknod") will give with major number 10 and minor number 131 ("man mknod") will give
...@@ -95,13 +113,6 @@ config WDT_501 ...@@ -95,13 +113,6 @@ config WDT_501
Fahrenheit. This works only if you have a WDT501P watchdog board Fahrenheit. This works only if you have a WDT501P watchdog board
installed. installed.
config WDT_501_FAN
bool "Fan Tachometer"
depends on WDT_501
help
Enable the Fan Tachometer on the WDT501. Only do this if you have a
fan tachometer actually set up.
config PCWATCHDOG config PCWATCHDOG
tristate "Berkshire Products PC Watchdog" tristate "Berkshire Products PC Watchdog"
depends on WATCHDOG depends on WATCHDOG
......
...@@ -486,7 +486,7 @@ static struct miscdevice wdtpci_miscdev = { ...@@ -486,7 +486,7 @@ static struct miscdevice wdtpci_miscdev = {
.fops = &wdtpci_fops, .fops = &wdtpci_fops,
}; };
#ifdef CONFIG_WDT_501 #ifdef CONFIG_WDT_501_PCI
static struct miscdevice temp_miscdev = { static struct miscdevice temp_miscdev = {
.minor = TEMP_MINOR, .minor = TEMP_MINOR,
.name = "temperature", .name = "temperature",
...@@ -550,7 +550,7 @@ static int __init wdtpci_init_one (struct pci_dev *dev, ...@@ -550,7 +550,7 @@ static int __init wdtpci_init_one (struct pci_dev *dev,
printk (KERN_ERR PFX "can't misc_register on minor=%d\n", WATCHDOG_MINOR); printk (KERN_ERR PFX "can't misc_register on minor=%d\n", WATCHDOG_MINOR);
goto out_misc; goto out_misc;
} }
#ifdef CONFIG_WDT_501 #ifdef CONFIG_WDT_501_PCI
ret = misc_register (&temp_miscdev); ret = misc_register (&temp_miscdev);
if (ret) { if (ret) {
printk (KERN_ERR PFX "can't misc_register (temp) on minor=%d\n", TEMP_MINOR); printk (KERN_ERR PFX "can't misc_register (temp) on minor=%d\n", TEMP_MINOR);
...@@ -562,7 +562,7 @@ static int __init wdtpci_init_one (struct pci_dev *dev, ...@@ -562,7 +562,7 @@ static int __init wdtpci_init_one (struct pci_dev *dev,
out: out:
return ret; return ret;
#ifdef CONFIG_WDT_501 #ifdef CONFIG_WDT_501_PCI
out_rbt: out_rbt:
unregister_reboot_notifier(&wdtpci_notifier); unregister_reboot_notifier(&wdtpci_notifier);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment