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
96d40941
Commit
96d40941
authored
Jan 02, 2009
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide: small ide_register_port() cleanup
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
b1d249e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+2
-7
No files found.
drivers/ide/ide-probe.c
View file @
96d40941
...
@@ -641,14 +641,9 @@ static int ide_register_port(ide_hwif_t *hwif)
...
@@ -641,14 +641,9 @@ static int ide_register_port(ide_hwif_t *hwif)
/* register with global device tree */
/* register with global device tree */
dev_set_name
(
&
hwif
->
gendev
,
hwif
->
name
);
dev_set_name
(
&
hwif
->
gendev
,
hwif
->
name
);
hwif
->
gendev
.
driver_data
=
hwif
;
hwif
->
gendev
.
driver_data
=
hwif
;
if
(
hwif
->
gendev
.
parent
==
NULL
)
{
hwif
->
gendev
.
parent
=
hwif
->
dev
;
if
(
hwif
->
dev
)
hwif
->
gendev
.
parent
=
hwif
->
dev
;
else
/* Would like to do = &device_legacy */
hwif
->
gendev
.
parent
=
NULL
;
}
hwif
->
gendev
.
release
=
hwif_release_dev
;
hwif
->
gendev
.
release
=
hwif_release_dev
;
ret
=
device_register
(
&
hwif
->
gendev
);
ret
=
device_register
(
&
hwif
->
gendev
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
printk
(
KERN_WARNING
"IDE: %s: device_register error: %d
\n
"
,
printk
(
KERN_WARNING
"IDE: %s: device_register error: %d
\n
"
,
...
...
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