r8152: disable power cut for RTL8153
authorhayeswang <hayeswang@realtek.com>
Wed, 1 Oct 2014 05:25:11 +0000 (13:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2014 20:46:34 +0000 (16:46 -0400)
The firmware would be clear when the power cut is enabled for
RTL8153.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index 18b9e0d7d6bbd04390d0d0de3f15ae83018bbbc3..604ef210a4dea5f8e8bd9b543b3dc4156b357286 100644 (file)
@@ -3397,7 +3397,7 @@ static void rtl8153_unload(struct r8152 *tp)
        if (test_bit(RTL8152_UNPLUG, &tp->flags))
                return;
 
-       r8153_power_cut_en(tp, true);
+       r8153_power_cut_en(tp, false);
 }
 
 static int rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id)