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
e895faed
Commit
e895faed
authored
Oct 31, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] serial_cs: Convert to use serial8250_{un,}register_port.
parent
33b42bcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
drivers/serial/serial_cs.c
drivers/serial/serial_cs.c
+12
-13
No files found.
drivers/serial/serial_cs.c
View file @
e895faed
...
...
@@ -40,8 +40,6 @@
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/tty.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#include <linux/major.h>
#include <asm/io.h>
...
...
@@ -148,7 +146,7 @@ static void serial_remove(dev_link_t *link)
*/
if
(
info
->
link
.
state
&
DEV_CONFIG
)
{
for
(
i
=
0
;
i
<
info
->
ndev
;
i
++
)
unregister_serial
(
info
->
line
[
i
]);
serial8250_unregister_port
(
info
->
line
[
i
]);
info
->
link
.
dev
=
NULL
;
...
...
@@ -304,21 +302,22 @@ static void serial_detach(dev_link_t * link)
/*====================================================================*/
static
int
setup_serial
(
struct
serial_info
*
info
,
ioaddr_t
port
,
int
irq
)
static
int
setup_serial
(
struct
serial_info
*
info
,
ioaddr_t
iobase
,
int
irq
)
{
struct
serial_struct
serial
;
struct
uart_port
port
;
int
line
;
memset
(
&
serial
,
0
,
sizeof
(
serial
));
serial
.
port
=
port
;
serial
.
irq
=
irq
;
serial
.
flags
=
UPF_SKIP_TEST
|
UPF_SHARE_IRQ
;
memset
(
&
port
,
0
,
sizeof
(
struct
uart_port
));
port
.
iobase
=
iobase
;
port
.
irq
=
irq
;
port
.
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_SHARE_IRQ
;
port
.
uartclk
=
1843200
;
if
(
buggy_uart
)
serial
.
flags
|=
UPF_BUGGY_UART
;
line
=
register_serial
(
&
serial
);
port
.
flags
|=
UPF_BUGGY_UART
;
line
=
serial8250_register_port
(
&
port
);
if
(
line
<
0
)
{
printk
(
KERN_NOTICE
"serial_cs:
register_serial() at 0x%04lx,
"
"
irq %d failed
\n
"
,
(
u_long
)
serial
.
port
,
serial
.
irq
);
printk
(
KERN_NOTICE
"serial_cs:
serial8250_register_port() at
"
"
0x%04lx, irq %d failed
\n
"
,
(
u_long
)
iobase
,
irq
);
return
-
EINVAL
;
}
...
...
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