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
f1700534
Commit
f1700534
authored
Aug 09, 2003
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] sbc60xxwdt patch4
added extra printk's to report what problem occured
parent
dc05b518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
drivers/char/watchdog/sbc60xxwdt.c
drivers/char/watchdog/sbc60xxwdt.c
+18
-1
No files found.
drivers/char/watchdog/sbc60xxwdt.c
View file @
f1700534
...
...
@@ -343,19 +343,28 @@ static int __init sbc60xxwdt_init(void)
int
rc
=
-
EBUSY
;
if
(
!
request_region
(
wdt_start
,
1
,
"SBC 60XX WDT"
))
{
printk
(
KERN_ERR
PFX
"I/O address 0x%04x already in use
\n
"
,
wdt_start
);
rc
=
-
EIO
;
goto
err_out
;
}
/* We cannot reserve 0x45 - the kernel already has! */
if
((
wdt_stop
!=
0x45
)
&&
(
wdt_stop
!=
wdt_start
))
{
if
(
!
request_region
(
wdt_stop
,
1
,
"SBC 60XX WDT"
))
{
printk
(
KERN_ERR
PFX
"I/O address 0x%04x already in use
\n
"
,
wdt_stop
);
goto
err_out_region1
;
}
}
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
"
,
printk
(
KERN_INFO
PFX
"timeout value must be 1<=x<=3600, using %d
\n
"
,
timeout
);
}
...
...
@@ -365,11 +374,19 @@ static int __init sbc60xxwdt_init(void)
rc
=
misc_register
(
&
wdt_miscdev
);
if
(
rc
)
{
printk
(
KERN_ERR
PFX
"cannot register miscdev on minor=%d (err=%d)
\n
"
,
wdt_miscdev
.
minor
,
rc
);
goto
err_out_region2
;
}
rc
=
register_reboot_notifier
(
&
wdt_notifier
);
if
(
rc
)
{
printk
(
KERN_ERR
PFX
"cannot register reboot notifier (err=%d)
\n
"
,
rc
);
goto
err_out_miscdev
;
}
printk
(
KERN_INFO
PFX
"WDT driver for 60XX single board computer initialised.
\n
"
);
...
...
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