staging/bcm: fix build for CONFIG_PM not enabled
[firefly-linux-kernel-4.4.55.git] / drivers / staging / bcm / InterfaceInit.c
index e06f168a52bd1a33571e20e3cc99dc57ed2e4384..d22a0e52a046c560634720d229f2c5c38d4912d6 100644 (file)
@@ -277,6 +277,7 @@ usbbcm_device_probe(struct usb_interface *intf, const struct usb_device_id *id)
                /* If Suspend then only support dynamic suspend */
                if(psAdapter->bDoSuspend)
                {
+#ifdef CONFIG_PM
                        udev->autosuspend_delay = 0;
                        intf->needs_remote_wakeup = 1;
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
@@ -290,6 +291,7 @@ usbbcm_device_probe(struct usb_interface *intf, const struct usb_device_id *id)
 #endif
                        INIT_WORK(&psIntfAdapter->usbSuspendWork, putUsbSuspend);
                        BCM_DEBUG_PRINT(psAdapter,DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, "Enabling USB Auto-Suspend\n");
+#endif
                }
                else
                {