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
210a3426
Commit
210a3426
authored
May 07, 2003
by
Hanna V. Linder
Committed by
Greg Kroah-Hartman
May 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] isicom tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
3f3d6bac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/char/isicom.c
drivers/char/isicom.c
+2
-6
No files found.
drivers/char/isicom.c
View file @
210a3426
...
@@ -590,9 +590,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id,
...
@@ -590,9 +590,7 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id,
port
->
status
&=
~
ISI_DCD
;
port
->
status
&=
~
ISI_DCD
;
if
(
!
((
port
->
flags
&
ASYNC_CALLOUT_ACTIVE
)
&&
if
(
!
((
port
->
flags
&
ASYNC_CALLOUT_ACTIVE
)
&&
(
port
->
flags
&
ASYNC_CALLOUT_NOHUP
)))
{
(
port
->
flags
&
ASYNC_CALLOUT_NOHUP
)))
{
MOD_INC_USE_COUNT
;
schedule_task
(
&
port
->
hangup_tq
);
if
(
schedule_task
(
&
port
->
hangup_tq
)
==
0
)
MOD_DEC_USE_COUNT
;
}
}
}
}
}
}
...
@@ -846,7 +844,6 @@ static inline void isicom_setup_board(struct isi_board * bp)
...
@@ -846,7 +844,6 @@ static inline void isicom_setup_board(struct isi_board * bp)
#endif
#endif
bp
->
status
|=
BOARD_ACTIVE
;
bp
->
status
|=
BOARD_ACTIVE
;
MOD_INC_USE_COUNT
;
return
;
return
;
}
}
...
@@ -1104,7 +1101,6 @@ static inline void isicom_shutdown_board(struct isi_board * bp)
...
@@ -1104,7 +1101,6 @@ static inline void isicom_shutdown_board(struct isi_board * bp)
for
(
channel
=
0
;
channel
<
bp
->
port_count
;
channel
++
,
port
++
)
{
for
(
channel
=
0
;
channel
<
bp
->
port_count
;
channel
++
,
port
++
)
{
drop_dtr_rts
(
port
);
drop_dtr_rts
(
port
);
}
}
MOD_DEC_USE_COUNT
;
}
}
static
void
isicom_shutdown_port
(
struct
isi_port
*
port
)
static
void
isicom_shutdown_port
(
struct
isi_port
*
port
)
...
@@ -1644,7 +1640,6 @@ static void do_isicom_hangup(void * data)
...
@@ -1644,7 +1640,6 @@ static void do_isicom_hangup(void * data)
tty
=
port
->
tty
;
tty
=
port
->
tty
;
if
(
tty
)
if
(
tty
)
tty_hangup
(
tty
);
/* FIXME: module removal race here - AKPM */
tty_hangup
(
tty
);
/* FIXME: module removal race here - AKPM */
MOD_DEC_USE_COUNT
;
}
}
static
void
isicom_hangup
(
struct
tty_struct
*
tty
)
static
void
isicom_hangup
(
struct
tty_struct
*
tty
)
...
@@ -1715,6 +1710,7 @@ static int register_drivers(void)
...
@@ -1715,6 +1710,7 @@ static int register_drivers(void)
/* tty driver structure initialization */
/* tty driver structure initialization */
memset
(
&
isicom_normal
,
0
,
sizeof
(
struct
tty_driver
));
memset
(
&
isicom_normal
,
0
,
sizeof
(
struct
tty_driver
));
isicom_normal
.
magic
=
TTY_DRIVER_MAGIC
;
isicom_normal
.
magic
=
TTY_DRIVER_MAGIC
;
isicom_normal
.
owner
=
THIS_MODULE
;
isicom_normal
.
name
=
"ttyM"
;
isicom_normal
.
name
=
"ttyM"
;
isicom_normal
.
major
=
ISICOM_NMAJOR
;
isicom_normal
.
major
=
ISICOM_NMAJOR
;
isicom_normal
.
minor_start
=
0
;
isicom_normal
.
minor_start
=
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