From 84d6642e4d1609562abb421341c9a90c023247a1 Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Tue, 4 Jul 2017 11:53:51 +0200 Subject: backports:fix compilation with toradex kernels Signed-off-by: Dominik Sliwa --- drivers/net/usb/sierra_net.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/net/usb/sierra_net.c') diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c index 7c92e08..a825fa6 100644 --- a/drivers/net/usb/sierra_net.c +++ b/drivers/net/usb/sierra_net.c @@ -997,7 +997,9 @@ static struct usb_driver sierra_net_driver = { .suspend = usbnet_suspend, .resume = usbnet_resume, .no_dynamic_id = 1, +#if LINUX_VERSION_IS_GEQ(3,5,0) .disable_hub_initiated_lpm = 1, +#endif }; module_usb_driver(sierra_net_driver); -- cgit v1.2.3