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
Kirill Smelkov
linux
Commits
699a5bbe
Commit
699a5bbe
authored
Jul 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] move watchdogs to __module_get now it exists
(Jan Dittmer) Also add the 82801EB/ER (Wim Van Sebroeck)
parent
c42189bb
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
23 deletions
+24
-23
drivers/char/watchdog/acquirewdt.c
drivers/char/watchdog/acquirewdt.c
+1
-1
drivers/char/watchdog/i810-tco.c
drivers/char/watchdog/i810-tco.c
+8
-4
drivers/char/watchdog/i810-tco.h
drivers/char/watchdog/i810-tco.h
+2
-2
drivers/char/watchdog/ib700wdt.c
drivers/char/watchdog/ib700wdt.c
+1
-1
drivers/char/watchdog/indydog.c
drivers/char/watchdog/indydog.c
+1
-1
drivers/char/watchdog/machzwd.c
drivers/char/watchdog/machzwd.c
+1
-1
drivers/char/watchdog/pcwd.c
drivers/char/watchdog/pcwd.c
+1
-1
drivers/char/watchdog/sbc60xxwdt.c
drivers/char/watchdog/sbc60xxwdt.c
+2
-3
drivers/char/watchdog/sc520_wdt.c
drivers/char/watchdog/sc520_wdt.c
+1
-1
drivers/char/watchdog/shwdt.c
drivers/char/watchdog/shwdt.c
+2
-3
drivers/char/watchdog/softdog.c
drivers/char/watchdog/softdog.c
+2
-3
drivers/char/watchdog/wdt977.c
drivers/char/watchdog/wdt977.c
+1
-1
drivers/char/watchdog/wdt_pci.c
drivers/char/watchdog/wdt_pci.c
+1
-1
No files found.
drivers/char/watchdog/acquirewdt.c
View file @
699a5bbe
...
...
@@ -143,7 +143,7 @@ static int acq_open(struct inode *inode, struct file *file)
return
-
EBUSY
;
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
/* Activate */
acq_is_open
=
1
;
...
...
drivers/char/watchdog/i810-tco.c
View file @
699a5bbe
...
...
@@ -25,7 +25,8 @@
* 82801AA & 82801AB chip : document number 290655-003, 290677-004,
* 82801BA & 82801BAM chip : document number 290687-002, 298242-005,
* 82801CA & 82801CAM chip : document number 290716-001, 290718-001,
* 82801DB & 82801E chip : document number 290744-001, 273599-001
* 82801DB & 82801E chip : document number 290744-001, 273599-001,
* 82801EB & 82801ER chip : document number 252516-001
*
* 20000710 Nils Faerber
* Initial Version 0.01
...
...
@@ -42,7 +43,9 @@
* clean up ioctls (WDIOC_GETSTATUS, WDIOC_GETBOOTSTATUS and
* WDIOC_SETOPTIONS), made i810tco_getdevice __init,
* removed boot_status, removed tco_timer_read,
* added support for 82801DB and 82801E chipset, general cleanup.
* added support for 82801DB and 82801E chipset,
* added support for 82801EB and 8280ER chipset,
* general cleanup.
*/
#include <linux/module.h>
...
...
@@ -307,6 +310,7 @@ static struct pci_device_id i810tco_pci_tbl[] __initdata = {
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_12
,
PCI_ANY_ID
,
PCI_ANY_ID
,
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801E_0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801EB_0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
},
{
0
,
},
};
MODULE_DEVICE_TABLE
(
pci
,
i810tco_pci_tbl
);
...
...
drivers/char/watchdog/i810-tco.h
View file @
699a5bbe
/*
* i810-tco
0.05
: TCO timer driver for i8xx chipsets
* i810-tco: TCO timer driver for i8xx chipsets
*
* (c) Copyright 2000 kernel concepts <nils@kernelconcepts.de>, All Rights Reserved.
* http://www.kernelconcepts.de
...
...
drivers/char/watchdog/ib700wdt.c
View file @
699a5bbe
...
...
@@ -230,7 +230,7 @@ ibwdt_open(struct inode *inode, struct file *file)
return
-
EBUSY
;
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
/* Activate */
ibwdt_is_open
=
1
;
...
...
drivers/char/watchdog/indydog.c
View file @
699a5bbe
...
...
@@ -54,7 +54,7 @@ static int indydog_open(struct inode *inode, struct file *file)
return
-
EBUSY
;
if
(
nowayout
)
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
/*
* Activate timer
...
...
drivers/char/watchdog/machzwd.c
View file @
699a5bbe
...
...
@@ -392,7 +392,7 @@ static int zf_open(struct inode *inode, struct file *file)
}
if
(
nowayout
)
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
zf_is_open
=
1
;
...
...
drivers/char/watchdog/pcwd.c
View file @
699a5bbe
...
...
@@ -431,7 +431,7 @@ static int pcwd_open(struct inode *ino, struct file *filep)
atomic_inc
(
&
open_allowed
);
return
-
EBUSY
;
}
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
/* Enable the port */
if
(
revision
==
PCWD_REVISION_C
)
{
spin_lock
(
&
io_lock
);
...
...
drivers/char/watchdog/sbc60xxwdt.c
View file @
699a5bbe
...
...
@@ -207,9 +207,8 @@ static int fop_open(struct inode * inode, struct file * file)
/* Just in case we're already talking to someone... */
if
(
wdt_is_open
)
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
if
(
nowayout
)
__module_get
(
THIS_MODULE
);
/* Good, fire up the show */
wdt_is_open
=
1
;
wdt_startup
();
...
...
drivers/char/watchdog/sc520_wdt.c
View file @
699a5bbe
...
...
@@ -231,7 +231,7 @@ static int fop_open(struct inode * inode, struct file * file)
/* Good, fire up the show */
wdt_startup
();
if
(
nowayout
)
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
return
0
;
default:
...
...
drivers/char/watchdog/shwdt.c
View file @
699a5bbe
...
...
@@ -189,9 +189,8 @@ static int sh_wdt_open(struct inode *inode, struct file *file)
if
(
test_and_set_bit
(
0
,
&
sh_is_open
))
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
if
(
nowayout
)
__module_get
(
THIS_MODULE
);
sh_wdt_start
();
...
...
drivers/char/watchdog/softdog.c
View file @
699a5bbe
...
...
@@ -104,9 +104,8 @@ static int softdog_open(struct inode *inode, struct file *file)
{
if
(
test_and_set_bit
(
0
,
&
timer_alive
))
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
}
if
(
nowayout
)
__module_get
(
THIS_MODULE
);
/*
* Activate timer
*/
...
...
drivers/char/watchdog/wdt977.c
View file @
699a5bbe
...
...
@@ -99,7 +99,7 @@ static int wdt977_open(struct inode *inode, struct file *file)
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
/* do not permit disabling the watchdog by writing 0 to reg. 0xF2 */
if
(
!
timeoutM
)
timeoutM
=
DEFAULT_TIMEOUT
;
...
...
drivers/char/watchdog/wdt_pci.c
View file @
699a5bbe
...
...
@@ -367,7 +367,7 @@ static int wdtpci_open(struct inode *inode, struct file *file)
return
-
EBUSY
;
if
(
nowayout
)
{
MOD_INC_USE_COUNT
;
__module_get
(
THIS_MODULE
)
;
}
/*
* Activate
...
...
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