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
18e030b5
Commit
18e030b5
authored
Mar 26, 2003
by
Christoph Hellwig
Committed by
James Bottomley
Mar 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] update qlogic and fdomain drivers to use pcmcia_register_driver
parent
07171f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
30 deletions
+32
-30
drivers/scsi/pcmcia/fdomain_stub.c
drivers/scsi/pcmcia/fdomain_stub.c
+19
-18
drivers/scsi/pcmcia/qlogic_stub.c
drivers/scsi/pcmcia/qlogic_stub.c
+13
-12
No files found.
drivers/scsi/pcmcia/fdomain_stub.c
View file @
18e030b5
...
...
@@ -379,26 +379,27 @@ static int fdomain_event(event_t event, int priority,
return
0
;
}
/* fdomain_event */
/*====================================================================*/
static
int
__init
init_fdomain_cs
(
void
)
{
servinfo_t
serv
;
DEBUG
(
0
,
"%s
\n
"
,
version
);
CardServices
(
GetCardServicesInfo
,
&
serv
);
if
(
serv
.
Revision
!=
CS_RELEASE_CODE
)
{
printk
(
KERN_NOTICE
"fdomain_cs: Card Services release "
"does not match!
\n
"
);
return
-
1
;
}
register_pccard_driver
(
&
dev_info
,
&
fdomain_attach
,
&
fdomain_detach
);
return
0
;
static
struct
pcmcia_driver
fdomain_cs_driver
=
{
.
owner
=
THIS_MODULE
,
.
drv
=
{
.
name
=
"fdomain_cs"
,
},
.
attach
=
fdomain_attach
,
.
detach
=
fdomain_detach
,
};
static
int
__init
init_fdomain_cs
(
void
)
{
return
pcmcia_register_driver
(
&
fdomain_cs_driver
);
}
static
void
__exit
exit_fdomain_cs
(
void
)
{
DEBUG
(
0
,
"fdomain_cs: unloading
\n
"
);
unregister_pccard_driver
(
&
dev_info
);
while
(
dev_list
!=
NULL
)
fdomain_detach
(
dev_list
);
static
void
__exit
exit_fdomain_cs
(
void
)
{
pcmcia_unregister_driver
(
&
fdomain_cs_driver
);
/* XXX: this really needs to move into generic code.. */
while
(
dev_list
!=
NULL
)
fdomain_detach
(
dev_list
);
}
module_init
(
init_fdomain_cs
);
...
...
drivers/scsi/pcmcia/qlogic_stub.c
View file @
18e030b5
...
...
@@ -397,25 +397,26 @@ static int qlogic_event(event_t event, int priority, event_callback_args_t * arg
return
0
;
}
/* qlogic_event */
/*====================================================================*/
static
struct
pcmcia_driver
qlogic_cs_driver
=
{
.
owner
=
THIS_MODULE
,
.
drv
=
{
.
name
=
"qlogic_cs"
,
},
.
attach
=
qlogic_attach
,
.
detach
=
qlogic_detach
,
};
static
int
__init
init_qlogic_cs
(
void
)
{
servinfo_t
serv
;
DEBUG
(
0
,
"%s
\n
"
,
version
);
CardServices
(
GetCardServicesInfo
,
&
serv
);
if
(
serv
.
Revision
!=
CS_RELEASE_CODE
)
{
printk
(
KERN_NOTICE
"qlogic_cs: Card Services release "
"does not match!
\n
"
);
return
-
1
;
}
register_pccard_driver
(
&
dev_info
,
&
qlogic_attach
,
&
qlogic_detach
);
return
0
;
return
pcmcia_register_driver
(
&
qlogic_cs_driver
);
}
static
void
__exit
exit_qlogic_cs
(
void
)
{
DEBUG
(
0
,
"qlogic_cs: unloading
\n
"
);
unregister_pccard_driver
(
&
dev_info
);
pcmcia_unregister_driver
(
&
qlogic_cs_driver
);
/* XXX: this really needs to move into generic code.. */
while
(
dev_list
!=
NULL
)
qlogic_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