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
d147e7d8
Commit
d147e7d8
authored
Apr 26, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
umc8672: don't use ide_hwifs[] in umc_set_pio_mode()
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
589b0626
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/ide/legacy/umc8672.c
drivers/ide/legacy/umc8672.c
+2
-2
No files found.
drivers/ide/legacy/umc8672.c
View file @
d147e7d8
...
...
@@ -105,13 +105,13 @@ static void umc_set_speeds (u8 speeds[])
static
void
umc_set_pio_mode
(
ide_drive_t
*
drive
,
const
u8
pio
)
{
ide_hwif_t
*
hwif
=
drive
->
hwif
;
unsigned
long
flags
;
ide_hwgroup_t
*
hwgroup
=
ide_hwifs
[
HWIF
(
drive
)
->
index
^
1
].
hwgroup
;
printk
(
"%s: setting umc8672 to PIO mode%d (speed %d)
\n
"
,
drive
->
name
,
pio
,
pio_to_umc
[
pio
]);
spin_lock_irqsave
(
&
ide_lock
,
flags
);
if
(
hw
group
&&
hwgroup
->
handler
!=
NULL
)
{
if
(
hw
if
->
mate
&&
hwif
->
mate
->
hwgroup
->
handler
)
{
printk
(
KERN_ERR
"umc8672: other interface is busy: exiting tune_umc()
\n
"
);
}
else
{
current_speeds
[
drive
->
name
[
2
]
-
'a'
]
=
pio_to_umc
[
pio
];
...
...
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