Skip to content

Commit

Permalink
r8169: fix argument in rtl_hw_init_8168g.
Browse files Browse the repository at this point in the history
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
  • Loading branch information
Hayes Wang authored and Francois Romieu committed Jul 10, 2012
1 parent 061a5c3 commit 5f8bcce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -6753,14 +6753,14 @@ static void __devinit rtl_hw_init_8168g(struct rtl8169_private *tp)
msleep(1);
RTL_W8(MCU, RTL_R8(MCU) & ~NOW_IS_OOB);

data = r8168_mac_ocp_read(ioaddr, 0xe8de);
data = r8168_mac_ocp_read(tp, 0xe8de);
data &= ~(1 << 14);
r8168_mac_ocp_write(tp, 0xe8de, data);

if (!rtl_udelay_loop_wait_high(tp, &rtl_link_list_ready_cond, 100, 42))
return;

data = r8168_mac_ocp_read(ioaddr, 0xe8de);
data = r8168_mac_ocp_read(tp, 0xe8de);
data |= (1 << 15);
r8168_mac_ocp_write(tp, 0xe8de, data);

Expand Down

0 comments on commit 5f8bcce

Please sign in to comment.