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
4c9558f5
Commit
4c9558f5
authored
May 27, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Plain Diff
Merge hera.kernel.org:/home/mochel/BK/linux-2.5
into hera.kernel.org:/home/mochel/BK/linux-2.5-linus
parents
71a15636
3e8c3286
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/base/core.c
drivers/base/core.c
+6
-3
include/linux/device.h
include/linux/device.h
+2
-0
No files found.
drivers/base/core.c
View file @
4c9558f5
...
...
@@ -96,9 +96,6 @@ void put_device(struct device * dev)
DBG
(
"DEV: Unregistering device. ID = '%s', name = '%s'
\n
"
,
dev
->
bus_id
,
dev
->
name
);
/* remove the driverfs directory */
device_remove_dir
(
dev
);
/* Notify the platform of the removal, in case they
* need to do anything...
*/
...
...
@@ -112,6 +109,12 @@ void put_device(struct device * dev)
if
(
dev
->
driver
&&
dev
->
driver
->
remove
)
dev
->
driver
->
remove
(
dev
,
REMOVE_FREE_RESOURCES
);
/* remove the driverfs directory */
device_remove_dir
(
dev
);
if
(
dev
->
release
)
dev
->
release
(
dev
);
put_device
(
dev
->
parent
);
}
...
...
include/linux/device.h
View file @
4c9558f5
...
...
@@ -92,6 +92,8 @@ struct device {
being off. */
unsigned
char
*
saved_state
;
/* saved device state */
void
(
*
release
)(
struct
device
*
dev
);
};
static
inline
struct
device
*
...
...
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