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
4681ce68
Commit
4681ce68
authored
Mar 29, 2003
by
Christoph Hellwig
Committed by
Russell King
Mar 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] switch over 8250_cs to pcmcia_register_driver
parent
6e54c890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
drivers/serial/8250_cs.c
drivers/serial/8250_cs.c
+12
-13
No files found.
drivers/serial/8250_cs.c
View file @
4681ce68
...
...
@@ -690,26 +690,25 @@ serial_event(event_t event, int priority, event_callback_args_t * args)
return
0
;
}
/*====================================================================*/
static
struct
pcmcia_driver
serial_cs_driver
=
{
.
owner
=
THIS_MODULE
,
.
drv
=
{
.
name
=
"serial_cs"
,
},
.
attach
=
serial_attach
,
.
detach
=
serial_detach
,
};
static
int
__init
init_serial_cs
(
void
)
{
servinfo_t
serv
;
DEBUG
(
0
,
"%s
\n
"
,
version
);
CardServices
(
GetCardServicesInfo
,
&
serv
);
if
(
serv
.
Revision
!=
CS_RELEASE_CODE
)
{
printk
(
KERN_NOTICE
"serial_cs: Card Services release "
"does not match!
\n
"
);
return
-
1
;
}
register_pccard_driver
(
&
dev_info
,
&
serial_attach
,
&
serial_detach
);
return
0
;
return
pcmcia_register_driver
(
&
serial_cs_driver
);
}
static
void
__exit
exit_serial_cs
(
void
)
{
DEBUG
(
0
,
"serial_cs: unloading
\n
"
);
unregister_pccard_driver
(
&
dev_info
);
pcmcia_unregister_driver
(
&
serial_cs_driver
);
/* XXX: this really needs to move into generic code.. */
while
(
dev_list
!=
NULL
)
serial_detach
(
dev_list
);
}
...
...
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