aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/smsc75xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
-rw-r--r--drivers/net/usb/smsc75xx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 1a15ec14c386..75409748c774 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -2015,7 +2015,11 @@ static int smsc75xx_suspend(struct usb_interface *intf, pm_message_t message)
2015 ret = smsc75xx_enter_suspend0(dev); 2015 ret = smsc75xx_enter_suspend0(dev);
2016 2016
2017done: 2017done:
2018 if (ret) 2018 /*
2019 * TODO: resume() might need to handle the suspend failure
2020 * in system sleep
2021 */
2022 if (ret && PMSG_IS_AUTO(message))
2019 usbnet_resume(intf); 2023 usbnet_resume(intf);
2020 return ret; 2024 return ret;
2021} 2025}