r8169: fix argument in rtl_hw_init_8168g.
authorHayes Wang <hayeswang@realtek.com>
Tue, 10 Jul 2012 06:47:05 +0000 (08:47 +0200)
committerFrancois Romieu <romieu@fr.zoreil.com>
Tue, 10 Jul 2012 06:49:36 +0000 (08:49 +0200)
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
drivers/net/ethernet/realtek/r8169.c

index 7ff3423edb9c0d6a4788a7301f437c8c871dc00d..c29c5fb3aecf7cae7ba1a7d88077d3e17105ff62 100644 (file)
@@ -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);