Skip to content

Commit 0fbd79c

Browse files
hayesorzdavem330
authored andcommitted
r8152: fix the autosuspend doesn't work
Set supports_autosuspend = 1 for the rtl8152_cfgselector_driver. Fixes: ec51fbd ("r8152: add USB device driver for config selection") Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3711d44 commit 0fbd79c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/usb/r8152.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9910,6 +9910,7 @@ static struct usb_device_driver rtl8152_cfgselector_driver = {
99109910
.probe = rtl8152_cfgselector_probe,
99119911
.id_table = rtl8152_table,
99129912
.generic_subclass = 1,
9913+
.supports_autosuspend = 1,
99139914
};
99149915

99159916
static int __init rtl8152_driver_init(void)

0 commit comments

Comments
 (0)