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
9997c9f3
Commit
9997c9f3
authored
Aug 04, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call device_remove_file() from cdrom layer, since they're not even
the ones that create the file.
parent
8834e16c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
drivers/cdrom/cdrom.c
drivers/cdrom/cdrom.c
+0
-5
No files found.
drivers/cdrom/cdrom.c
View file @
9997c9f3
...
...
@@ -432,11 +432,6 @@ int unregister_cdrom(struct cdrom_device_info *unreg)
topCdromPtr
=
cdi
->
next
;
cdi
->
ops
->
n_minors
--
;
devfs_unregister
(
cdi
->
de
);
if
(
atomic_read
(
&
cdi
->
cdrom_driverfs_dev
.
refcount
))
{
device_remove_file
(
&
cdi
->
cdrom_driverfs_dev
,
"name"
);
device_remove_file
(
&
cdi
->
cdrom_driverfs_dev
,
"kdev"
);
put_device
(
&
cdi
->
cdrom_driverfs_dev
);
}
devfs_dealloc_unique_number
(
&
cdrom_numspace
,
cdi
->
number
);
cdinfo
(
CD_REG_UNREG
,
"drive
\"
/dev/%s
\"
unregistered
\n
"
,
cdi
->
name
);
return
0
;
...
...
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