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
64e928e3
Commit
64e928e3
authored
Jan 05, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edd: fix up for changes in kobject infrastructure.
parent
85e865ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
arch/i386/kernel/edd.c
arch/i386/kernel/edd.c
+5
-3
No files found.
arch/i386/kernel/edd.c
View file @
64e928e3
...
@@ -597,12 +597,14 @@ static struct edd_attribute * edd_attrs[] = {
...
@@ -597,12 +597,14 @@ static struct edd_attribute * edd_attrs[] = {
NULL
,
NULL
,
};
};
static
struct
subsystem
edd_subsys
=
{
static
struct
kobj_type
ktype_edd
=
{
.
kobj
=
{
.
name
=
"edd"
},
.
sysfs_ops
=
&
edd_attr_ops
,
.
sysfs_ops
=
&
edd_attr_ops
,
.
default_attrs
=
def_attrs
,
.
default_attrs
=
def_attrs
,
};
};
static
decl_subsys
(
edd
,
&
ktype_edd
);
/**
/**
* edd_dev_is_type() - is this EDD device a 'type' device?
* edd_dev_is_type() - is this EDD device a 'type' device?
...
@@ -793,7 +795,7 @@ edd_device_register(struct edd_device *edev, int i)
...
@@ -793,7 +795,7 @@ edd_device_register(struct edd_device *edev, int i)
edd_dev_set_info
(
edev
,
&
edd
[
i
]);
edd_dev_set_info
(
edev
,
&
edd
[
i
]);
snprintf
(
edev
->
kobj
.
name
,
EDD_DEVICE_NAME_SIZE
,
"int13_dev%02x"
,
snprintf
(
edev
->
kobj
.
name
,
EDD_DEVICE_NAME_SIZE
,
"int13_dev%02x"
,
edd
[
i
].
device
);
edd
[
i
].
device
);
edev
->
kobj
.
subsys
=
&
edd_subsys
;
kobj_set_kset_s
(
edev
,
edd_subsys
)
;
error
=
kobject_register
(
&
edev
->
kobj
);
error
=
kobject_register
(
&
edev
->
kobj
);
if
(
!
error
)
if
(
!
error
)
populate_dir
(
edev
);
populate_dir
(
edev
);
...
...
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