Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
34cdf699
Commit
34cdf699
authored
Jul 29, 2003
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] make wdt_pci.c independant of wdt.c
parent
926da5aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
drivers/char/watchdog/Kconfig
drivers/char/watchdog/Kconfig
+21
-10
drivers/char/watchdog/wdt_pci.c
drivers/char/watchdog/wdt_pci.c
+3
-3
No files found.
drivers/char/watchdog/Kconfig
View file @
34cdf699
...
...
@@ -68,6 +68,24 @@ config WDT
say M here and read <file:Documentation/modules.txt>. The module
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
tristate "WDT PCI Watchdog timer"
depends on WATCHDOG
...
...
@@ -84,9 +102,9 @@ config WDTPCI
say M here and read <file:Documentation/modules.txt>. The module
will be called wdt_pci.
config WDT_501
bool "WDT501 features"
depends on WDT
config WDT_501
_PCI
bool "WDT501
-PCI
features"
depends on WDT
PCI
help
Saying Y here and creating a character special file /dev/temperature
with major number 10 and minor number 131 ("man mknod") will give
...
...
@@ -95,13 +113,6 @@ config WDT_501
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 PCWATCHDOG
tristate "Berkshire Products PC Watchdog"
depends on WATCHDOG
...
...
drivers/char/watchdog/wdt_pci.c
View file @
34cdf699
...
...
@@ -486,7 +486,7 @@ static struct miscdevice wdtpci_miscdev = {
.
fops
=
&
wdtpci_fops
,
};
#ifdef CONFIG_WDT_501
#ifdef CONFIG_WDT_501
_PCI
static
struct
miscdevice
temp_miscdev
=
{
.
minor
=
TEMP_MINOR
,
.
name
=
"temperature"
,
...
...
@@ -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
);
goto
out_misc
;
}
#ifdef CONFIG_WDT_501
#ifdef CONFIG_WDT_501
_PCI
ret
=
misc_register
(
&
temp_miscdev
);
if
(
ret
)
{
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,
out:
return
ret
;
#ifdef CONFIG_WDT_501
#ifdef CONFIG_WDT_501
_PCI
out_rbt:
unregister_reboot_notifier
(
&
wdtpci_notifier
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment