Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
1c067318
Commit
1c067318
authored
Jun 04, 2007
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] Mixcom Watchdog - clean-up printk's
Clean-up printk's. Signed-off-by:
Wim Van Sebroeck
<
wim@iguana.be
>
parent
21baf3c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/char/watchdog/mixcomwd.c
drivers/char/watchdog/mixcomwd.c
+7
-4
No files found.
drivers/char/watchdog/mixcomwd.c
View file @
1c067318
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
*/
*/
#define VERSION "0.6"
#define VERSION "0.6"
#define WATCHDOG_NAME "mixcomwd"
#define PFX WATCHDOG_NAME ": "
#include <linux/module.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/moduleparam.h>
...
@@ -152,13 +154,13 @@ static int mixcomwd_release(struct inode *inode, struct file *file)
...
@@ -152,13 +154,13 @@ static int mixcomwd_release(struct inode *inode, struct file *file)
{
{
if
(
expect_close
==
42
)
{
if
(
expect_close
==
42
)
{
if
(
mixcomwd_timer_alive
)
{
if
(
mixcomwd_timer_alive
)
{
printk
(
KERN_ERR
"mixcomwd:
release called while internal timer alive"
);
printk
(
KERN_ERR
PFX
"
release called while internal timer alive"
);
return
-
EBUSY
;
return
-
EBUSY
;
}
}
mixcomwd_timer_alive
=
1
;
mixcomwd_timer_alive
=
1
;
mod_timer
(
&
mixcomwd_timer
,
jiffies
+
5
*
HZ
);
mod_timer
(
&
mixcomwd_timer
,
jiffies
+
5
*
HZ
);
}
else
{
}
else
{
printk
(
KERN_CRIT
"mixcomwd:
WDT device closed unexpectedly. WDT will not stop!
\n
"
);
printk
(
KERN_CRIT
PFX
"
WDT device closed unexpectedly. WDT will not stop!
\n
"
);
}
}
clear_bit
(
0
,
&
mixcomwd_opened
);
clear_bit
(
0
,
&
mixcomwd_opened
);
...
@@ -278,7 +280,7 @@ static int __init mixcomwd_init(void)
...
@@ -278,7 +280,7 @@ static int __init mixcomwd_init(void)
}
}
if
(
!
found
)
{
if
(
!
found
)
{
printk
(
"mixcomwd:
No card detected, or port not available.
\n
"
);
printk
(
KERN_ERR
PFX
"
No card detected, or port not available.
\n
"
);
return
-
ENODEV
;
return
-
ENODEV
;
}
}
...
@@ -298,7 +300,7 @@ static void __exit mixcomwd_exit(void)
...
@@ -298,7 +300,7 @@ static void __exit mixcomwd_exit(void)
{
{
if
(
!
nowayout
)
{
if
(
!
nowayout
)
{
if
(
mixcomwd_timer_alive
)
{
if
(
mixcomwd_timer_alive
)
{
printk
(
KERN_WARNING
"mixcomwd:
I quit now, hardware will"
printk
(
KERN_WARNING
PFX
"
I quit now, hardware will"
" probably reboot!
\n
"
);
" probably reboot!
\n
"
);
del_timer_sync
(
&
mixcomwd_timer
);
del_timer_sync
(
&
mixcomwd_timer
);
mixcomwd_timer_alive
=
0
;
mixcomwd_timer_alive
=
0
;
...
@@ -313,5 +315,6 @@ module_exit(mixcomwd_exit);
...
@@ -313,5 +315,6 @@ module_exit(mixcomwd_exit);
MODULE_AUTHOR
(
"Gergely Madarasz <gorgo@itc.hu>"
);
MODULE_AUTHOR
(
"Gergely Madarasz <gorgo@itc.hu>"
);
MODULE_DESCRIPTION
(
"MixCom Watchdog driver"
);
MODULE_DESCRIPTION
(
"MixCom Watchdog driver"
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS_MISCDEV
(
WATCHDOG_MINOR
);
MODULE_ALIAS_MISCDEV
(
WATCHDOG_MINOR
);
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