diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-09-14 15:39:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 12:29:32 -0700 |
commit | 5fe1f1edb916aa4f573563449ceccd1b468aedda (patch) | |
tree | f38cd0392a091beac865ce81ac1df43eec6fd27f /drivers/staging/bcm | |
parent | 3e8acee461f3bdcec0a0a5cbf2886710a21a6662 (diff) | |
download | linux-stable-5fe1f1edb916aa4f573563449ceccd1b468aedda.tar.gz linux-stable-5fe1f1edb916aa4f573563449ceccd1b468aedda.tar.bz2 linux-stable-5fe1f1edb916aa4f573563449ceccd1b468aedda.zip |
staging/bcm: fix build for CONFIG_PM not enabled
Handle build case of CONFIG_PM not being enabled.
drivers/staging/bcm/InterfaceInit.c:280: error: 'struct usb_device' has no member named 'autosuspend_delay'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/InterfaceInit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/bcm/InterfaceInit.c b/drivers/staging/bcm/InterfaceInit.c index e06f168a52bd..d22a0e52a046 100644 --- a/drivers/staging/bcm/InterfaceInit.c +++ b/drivers/staging/bcm/InterfaceInit.c @@ -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 { |