r8152: fix runtime function for RTL8152
authorhayeswang <hayeswang@realtek.com>
Tue, 5 Jul 2016 08:11:46 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 17:22:29 +0000 (10:22 -0700)
commit2609af19362d03332b55fc7836e7023bcd6d90bf
treeab721cf01775b1166ba43bee4300e6fba888badb
parent7831b4ff0d926e0deeaabef9db8800ed069a2757
r8152: fix runtime function for RTL8152

The RTL8152 doesn't have U1U2 and U2P3 features, so use different
runtime functions for RTL812 and RTL8153 by adding autosuspend_en()
to rtl_ops.

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