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
6c583251
Commit
6c583251
authored
Jan 10, 2003
by
Dave Jones
Committed by
Dave Jones
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] advantech compile fixes
parent
af495c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/char/watchdog/advantechwdt.c
drivers/char/watchdog/advantechwdt.c
+3
-2
No files found.
drivers/char/watchdog/advantechwdt.c
View file @
6c583251
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
static
int
advwdt_is_open
;
static
int
advwdt_is_open
;
static
char
adv_expect_close
;
static
spinlock_t
advwdt_lock
;
static
spinlock_t
advwdt_lock
;
/*
/*
...
@@ -157,7 +158,7 @@ advwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -157,7 +158,7 @@ advwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
static
int
static
int
advwdt_open
(
struct
inode
*
inode
,
struct
file
*
file
)
advwdt_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
if
(
minor
(
inode
->
i_rdev
)
=
WATCHDOG_MINOR
)
{
if
(
minor
(
inode
->
i_rdev
)
=
=
WATCHDOG_MINOR
)
{
spin_lock
(
&
advwdt_lock
);
spin_lock
(
&
advwdt_lock
);
if
(
advwdt_is_open
)
{
if
(
advwdt_is_open
)
{
spin_unlock
(
&
advwdt_lock
);
spin_unlock
(
&
advwdt_lock
);
...
@@ -231,7 +232,7 @@ static struct miscdevice advwdt_miscdev = {
...
@@ -231,7 +232,7 @@ static struct miscdevice advwdt_miscdev = {
*/
*/
static
struct
notifier_block
advwdt_notifier
=
{
static
struct
notifier_block
advwdt_notifier
=
{
.
self
=
advwdt_notify_sys
,
.
notifier_call
=
advwdt_notify_sys
,
.
next
=
NULL
,
.
next
=
NULL
,
.
priority
=
0
.
priority
=
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