Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
16019c35
Commit
16019c35
authored
Apr 27, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpc8xx-ide: use ide_find_port()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
1dbfeb4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
drivers/ide/ppc/mpc8xx.c
drivers/ide/ppc/mpc8xx.c
+14
-10
No files found.
drivers/ide/ppc/mpc8xx.c
View file @
16019c35
...
...
@@ -811,24 +811,28 @@ static int __init mpc8xx_ide_probe(void)
#ifdef IDE0_BASE_OFFSET
memset
(
&
hw
,
0
,
sizeof
(
hw
));
if
(
!
m8xx_ide_init_ports
(
&
hw
,
0
))
{
ide_hwif_t
*
hwif
=
&
ide_hwifs
[
0
]
;
ide_hwif_t
*
hwif
=
ide_find_port
()
;
ide_init_port_hw
(
hwif
,
&
hw
);
hwif
->
pio_mask
=
ATA_PIO4
;
hwif
->
port_ops
=
&
m8xx_port_ops
;
if
(
hwif
)
{
ide_init_port_hw
(
hwif
,
&
hw
);
hwif
->
pio_mask
=
ATA_PIO4
;
hwif
->
port_ops
=
&
m8xx_port_ops
;
idx
[
0
]
=
0
;
idx
[
0
]
=
hwif
->
index
;
}
}
#ifdef IDE1_BASE_OFFSET
memset
(
&
hw
,
0
,
sizeof
(
hw
));
if
(
!
m8xx_ide_init_ports
(
&
hw
,
1
))
{
ide_hwif_t
*
mate
=
&
ide_hwifs
[
1
]
;
ide_hwif_t
*
mate
=
ide_find_port
()
;
ide_init_port_hw
(
mate
,
&
hw
);
mate
->
pio_mask
=
ATA_PIO4
;
mate
->
port_ops
=
&
m8xx_port_ops
;
if
(
mate
)
{
ide_init_port_hw
(
mate
,
&
hw
);
mate
->
pio_mask
=
ATA_PIO4
;
mate
->
port_ops
=
&
m8xx_port_ops
;
idx
[
1
]
=
1
;
idx
[
1
]
=
mate
->
index
;
}
}
#endif
#endif
...
...
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