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
8f9dfd2c
Commit
8f9dfd2c
authored
Jun 03, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[driver model] Clean up class release handling.
Based on a patch by Stephen Hemminger.
parent
5df31005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
drivers/base/class.c
drivers/base/class.c
+8
-4
No files found.
drivers/base/class.c
View file @
8f9dfd2c
...
...
@@ -181,14 +181,18 @@ static struct sysfs_ops class_dev_sysfs_ops = {
static
void
class_dev_release
(
struct
kobject
*
kobj
)
{
struct
class_device
*
class_dev
=
to_class_dev
(
kobj
);
if
(
class_dev
->
release
)
class_dev
->
release
(
class_dev
);
struct
class_device
*
cd
=
to_class_dev
(
kobj
);
struct
class
*
cls
=
cd
->
class
;
pr_debug
(
"device class '%s': release.
\n
"
,
cd
->
class_id
);
if
(
cls
->
release
)
cd
->
release
(
cd
);
}
static
struct
kobj_type
ktype_class_device
=
{
.
release
=
&
class_dev_release
,
.
sysfs_ops
=
&
class_dev_sysfs_ops
,
.
release
=
class_dev_release
,
};
static
int
class_hotplug_filter
(
struct
kset
*
kset
,
struct
kobject
*
kobj
)
...
...
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