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
9c817b39
Commit
9c817b39
authored
Jul 31, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup users of device_remove_file to pass a struct device_attribute, instead of a char *
parent
5509cd36
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/scsi/sg.c
drivers/scsi/sg.c
+2
-2
drivers/scsi/st.c
drivers/scsi/st.c
+2
-2
fs/partitions/check.c
fs/partitions/check.c
+4
-4
No files found.
drivers/scsi/sg.c
View file @
9c817b39
...
...
@@ -1556,8 +1556,8 @@ static void sg_detach(Scsi_Device * scsidp)
}
SCSI_LOG_TIMEOUT
(
3
,
printk
(
"sg_detach: dev=%d, dirty
\n
"
,
k
));
devfs_unregister
(
sdp
->
de
);
device_remove_file
(
&
sdp
->
sg_driverfs_dev
,
sg_device_type_file
.
nam
e
);
device_remove_file
(
&
sdp
->
sg_driverfs_dev
,
sg_device_kdev_file
.
nam
e
);
device_remove_file
(
&
sdp
->
sg_driverfs_dev
,
&
sg_device_type_fil
e
);
device_remove_file
(
&
sdp
->
sg_driverfs_dev
,
&
sg_device_kdev_fil
e
);
put_device
(
&
sdp
->
sg_driverfs_dev
);
sdp
->
de
=
NULL
;
if
(
NULL
==
sdp
->
headfp
)
{
...
...
drivers/scsi/st.c
View file @
9c817b39
...
...
@@ -3785,9 +3785,9 @@ static void st_detach(Scsi_Device * SDp)
devfs_unregister
(
tpnt
->
de_r
[
mode
]);
tpnt
->
de_r
[
mode
]
=
NULL
;
device_remove_file
(
&
tpnt
->
driverfs_dev_r
[
mode
],
st_device_type_file
.
nam
e
);
&
st_device_type_fil
e
);
device_remove_file
(
&
tpnt
->
driverfs_dev_r
[
mode
],
st_device_kdev_file
.
nam
e
);
&
st_device_kdev_fil
e
);
put_device
(
&
tpnt
->
driverfs_dev_r
[
mode
]);
devfs_unregister
(
tpnt
->
de_n
[
mode
]);
tpnt
->
de_n
[
mode
]
=
NULL
;
...
...
fs/partitions/check.c
View file @
9c817b39
...
...
@@ -317,17 +317,17 @@ void driverfs_remove_partitions(struct gendisk *hd, int minor)
if
((
p
[
part
].
nr_sects
>=
1
))
{
current_driverfs_dev
=
&
p
[
part
].
hd_driverfs_dev
;
device_remove_file
(
current_driverfs_dev
,
partition_device_type_file
.
nam
e
);
&
partition_device_type_fil
e
);
device_remove_file
(
current_driverfs_dev
,
partition_device_kdev_file
.
nam
e
);
&
partition_device_kdev_fil
e
);
put_device
(
current_driverfs_dev
);
}
}
current_driverfs_dev
=
&
p
->
hd_driverfs_dev
;
device_remove_file
(
current_driverfs_dev
,
partition_device_type_file
.
nam
e
);
&
partition_device_type_fil
e
);
device_remove_file
(
current_driverfs_dev
,
partition_device_kdev_file
.
nam
e
);
&
partition_device_kdev_fil
e
);
put_device
(
current_driverfs_dev
);
return
;
}
...
...
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