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
nexedi
linux
Commits
422f1c07
Commit
422f1c07
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] sh-sci tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
4cb31f6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
drivers/char/sh-sci.c
drivers/char/sh-sci.c
+1
-21
No files found.
drivers/char/sh-sci.c
View file @
422f1c07
...
@@ -71,8 +71,6 @@ static void sci_enable_rx_interrupts(void *ptr);
...
@@ -71,8 +71,6 @@ static void sci_enable_rx_interrupts(void *ptr);
static
int
sci_get_CD
(
void
*
ptr
);
static
int
sci_get_CD
(
void
*
ptr
);
static
void
sci_shutdown_port
(
void
*
ptr
);
static
void
sci_shutdown_port
(
void
*
ptr
);
static
int
sci_set_real_termios
(
void
*
ptr
);
static
int
sci_set_real_termios
(
void
*
ptr
);
static
void
sci_hungup
(
void
*
ptr
);
static
void
sci_close
(
void
*
ptr
);
static
int
sci_chars_in_buffer
(
void
*
ptr
);
static
int
sci_chars_in_buffer
(
void
*
ptr
);
static
int
sci_request_irq
(
struct
sci_port
*
port
);
static
int
sci_request_irq
(
struct
sci_port
*
port
);
static
void
sci_free_irq
(
struct
sci_port
*
port
);
static
void
sci_free_irq
(
struct
sci_port
*
port
);
...
@@ -216,8 +214,6 @@ static struct real_driver sci_real_driver = {
...
@@ -216,8 +214,6 @@ static struct real_driver sci_real_driver = {
sci_shutdown_port
,
sci_shutdown_port
,
sci_set_real_termios
,
sci_set_real_termios
,
sci_chars_in_buffer
,
sci_chars_in_buffer
,
sci_close
,
sci_hungup
,
NULL
NULL
};
};
...
@@ -838,12 +834,7 @@ static int sci_open(struct tty_struct * tty, struct file * filp)
...
@@ -838,12 +834,7 @@ static int sci_open(struct tty_struct * tty, struct file * filp)
sci_setsignals
(
port
,
1
,
1
);
sci_setsignals
(
port
,
1
,
1
);
if
(
port
->
gs
.
count
==
1
)
{
if
(
port
->
gs
.
count
==
1
)
{
MOD_INC_USE_COUNT
;
retval
=
sci_request_irq
(
port
);
retval
=
sci_request_irq
(
port
);
if
(
retval
)
{
goto
failed_2
;
}
}
}
retval
=
gs_block_til_ready
(
port
,
filp
);
retval
=
gs_block_til_ready
(
port
,
filp
);
...
@@ -878,23 +869,11 @@ static int sci_open(struct tty_struct * tty, struct file * filp)
...
@@ -878,23 +869,11 @@ static int sci_open(struct tty_struct * tty, struct file * filp)
failed_3:
failed_3:
sci_free_irq
(
port
);
sci_free_irq
(
port
);
failed_2:
MOD_DEC_USE_COUNT
;
failed_1:
failed_1:
port
->
gs
.
count
--
;
port
->
gs
.
count
--
;
return
retval
;
return
retval
;
}
}
static
void
sci_hungup
(
void
*
ptr
)
{
MOD_DEC_USE_COUNT
;
}
static
void
sci_close
(
void
*
ptr
)
{
MOD_DEC_USE_COUNT
;
}
static
int
sci_ioctl
(
struct
tty_struct
*
tty
,
struct
file
*
filp
,
static
int
sci_ioctl
(
struct
tty_struct
*
tty
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
...
@@ -1019,6 +998,7 @@ static int sci_init_drivers(void)
...
@@ -1019,6 +998,7 @@ static int sci_init_drivers(void)
memset
(
&
sci_driver
,
0
,
sizeof
(
sci_driver
));
memset
(
&
sci_driver
,
0
,
sizeof
(
sci_driver
));
sci_driver
.
magic
=
TTY_DRIVER_MAGIC
;
sci_driver
.
magic
=
TTY_DRIVER_MAGIC
;
sci_driver
.
owner
=
THIS_MODULE
;
sci_driver
.
driver_name
=
"sci"
;
sci_driver
.
driver_name
=
"sci"
;
#ifdef CONFIG_DEVFS_FS
#ifdef CONFIG_DEVFS_FS
sci_driver
.
name
=
"ttsc/"
;
sci_driver
.
name
=
"ttsc/"
;
...
...
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