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
10e01163
Commit
10e01163
authored
Oct 16, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver model (scsi): change calls of remove_driver() to driver_unregister().
parent
16733e6a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+1
-2
drivers/scsi/sd.c
drivers/scsi/sd.c
+1
-1
drivers/scsi/sg.c
drivers/scsi/sg.c
+1
-1
drivers/scsi/sr.c
drivers/scsi/sr.c
+1
-1
drivers/scsi/st.c
drivers/scsi/st.c
+1
-1
No files found.
drivers/scsi/scsi_debug.c
View file @
10e01163
...
...
@@ -861,8 +861,7 @@ static int scsi_debug_release(struct Scsi_Host * hpnt)
if
(
++
num_releases
==
num_present
)
{
#ifdef DRIVERFS_SUPPORT
do_remove_driverfs_files
();
remove_driver
(
&
sdebug_driverfs_driver
);
// driver_unregister(&sdebug_driverfs_driver);
driver_unregister
(
&
sdebug_driverfs_driver
);
#endif
vfree
(
fake_storep
);
vfree
(
devInfop
);
...
...
drivers/scsi/sd.c
View file @
10e01163
...
...
@@ -1549,7 +1549,7 @@ static void __exit exit_sd(void)
for
(
k
=
0
;
k
<
N_USED_SD_MAJORS
;
k
++
)
blk_dev
[
SD_MAJOR
(
k
)].
queue
=
NULL
;
sd_template
.
dev_max
=
0
;
remove_driv
er
(
&
sd_template
.
scsi_driverfs_driver
);
driver_unregist
er
(
&
sd_template
.
scsi_driverfs_driver
);
unregister_reboot_notifier
(
&
sd_notifier_block
);
}
...
...
drivers/scsi/sg.c
View file @
10e01163
...
...
@@ -1659,7 +1659,7 @@ exit_sg(void)
sg_dev_arr
=
NULL
;
}
sg_template
.
dev_max
=
0
;
remove_driv
er
(
&
sg_template
.
scsi_driverfs_driver
);
driver_unregist
er
(
&
sg_template
.
scsi_driverfs_driver
);
}
static
int
...
...
drivers/scsi/sr.c
View file @
10e01163
...
...
@@ -839,7 +839,7 @@ static void __exit exit_sr(void)
kfree
(
scsi_CDs
);
sr_template
.
dev_max
=
0
;
remove_driv
er
(
&
sr_template
.
scsi_driverfs_driver
);
driver_unregist
er
(
&
sr_template
.
scsi_driverfs_driver
);
}
module_init
(
init_sr
);
...
...
drivers/scsi/st.c
View file @
10e01163
...
...
@@ -3994,7 +3994,7 @@ static void __exit exit_st(void)
kfree
(
scsi_tapes
);
}
st_template
.
dev_max
=
0
;
remove_driv
er
(
&
st_template
.
scsi_driverfs_driver
);
driver_unregist
er
(
&
st_template
.
scsi_driverfs_driver
);
printk
(
KERN_INFO
"st: Unloaded.
\n
"
);
}
...
...
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