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
6039f269
Commit
6039f269
authored
Aug 09, 2003
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] sbc60xxwdt.c patch5
some last clean-ups
parent
f1700534
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
drivers/char/watchdog/sbc60xxwdt.c
drivers/char/watchdog/sbc60xxwdt.c
+9
-8
No files found.
drivers/char/watchdog/sbc60xxwdt.c
View file @
6039f269
...
...
@@ -342,6 +342,13 @@ static int __init sbc60xxwdt_init(void)
{
int
rc
=
-
EBUSY
;
if
(
timeout
<
1
||
timeout
>
3600
)
/* arbitrary upper limit */
{
timeout
=
WATCHDOG_TIMEOUT
;
printk
(
KERN_INFO
PFX
"timeout value must be 1<=x<=3600, using %d
\n
"
,
timeout
);
}
if
(
!
request_region
(
wdt_start
,
1
,
"SBC 60XX WDT"
))
{
printk
(
KERN_ERR
PFX
"I/O address 0x%04x already in use
\n
"
,
...
...
@@ -361,13 +368,6 @@ static int __init sbc60xxwdt_init(void)
}
}
if
(
timeout
<
1
||
timeout
>
3600
)
/* arbitrary upper limit */
{
timeout
=
WATCHDOG_TIMEOUT
;
printk
(
KERN_INFO
PFX
"timeout value must be 1<=x<=3600, using %d
\n
"
,
timeout
);
}
init_timer
(
&
timer
);
timer
.
function
=
wdt_timer_ping
;
timer
.
data
=
0
;
...
...
@@ -388,7 +388,8 @@ static int __init sbc60xxwdt_init(void)
goto
err_out_miscdev
;
}
printk
(
KERN_INFO
PFX
"WDT driver for 60XX single board computer initialised.
\n
"
);
printk
(
KERN_INFO
PFX
"WDT driver for 60XX single board computer initialised. timeout=%d sec (nowayout=%d)
\n
"
,
timeout
,
nowayout
);
return
0
;
...
...
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