Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322875
b: refs/heads/master
c: c5a5052
h: refs/heads/master
i:
  322873: 08d8c1e
  322871: 9aa3f31
v: v3
  • Loading branch information
Bernhard Froemel authored and Matthew Garrett committed Sep 13, 2012
1 parent 46fd2fc commit 65bee8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07f377da7e8a7d3c3a6626333516f9c808637c9e
refs/heads/master: c5a5052923c55990e32a3d64bdb4779b01162646
6 changes: 4 additions & 2 deletions trunk/drivers/platform/x86/apple-gmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ static u8 gmux_index_read8(struct apple_gmux_data *gmux_data, int port)
u8 val;

mutex_lock(&gmux_data->index_lock);
outb((port & 0xff), gmux_data->iostart + GMUX_PORT_READ);
gmux_index_wait_ready(gmux_data);
outb((port & 0xff), gmux_data->iostart + GMUX_PORT_READ);
gmux_index_wait_complete(gmux_data);
val = inb(gmux_data->iostart + GMUX_PORT_VALUE);
mutex_unlock(&gmux_data->index_lock);

Expand All @@ -166,8 +167,9 @@ static u32 gmux_index_read32(struct apple_gmux_data *gmux_data, int port)
u32 val;

mutex_lock(&gmux_data->index_lock);
outb((port & 0xff), gmux_data->iostart + GMUX_PORT_READ);
gmux_index_wait_ready(gmux_data);
outb((port & 0xff), gmux_data->iostart + GMUX_PORT_READ);
gmux_index_wait_complete(gmux_data);
val = inl(gmux_data->iostart + GMUX_PORT_VALUE);
mutex_unlock(&gmux_data->index_lock);

Expand Down

0 comments on commit 65bee8e

Please sign in to comment.