Skip to content

Commit cd60451

Browse files
akpm00torvalds
authored andcommitted
drivers/usb/serial/sierra.c: fix CONFIG_PM=n build
drivers/usb/serial/sierra.c: In function 'sierra_suspend': drivers/usb/serial/sierra.c:936: error: 'struct usb_device' has no member named 'auto_pm' Repairs commit e6929a9 Author: Oliver Neukum <oliver@neukum.org> Date: Fri Sep 4 23:19:53 2009 +0200 USB: support for autosuspend in sierra while online Cc: Greg KH <greg@kroah.com> Cc: Oliver Neukum <oliver@neukum.org> Cc: Elina Pasheva <epasheva@sierrawireless.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d68721e commit cd60451

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/usb/serial/sierra.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ static void sierra_release(struct usb_serial *serial)
912912
}
913913
}
914914

915+
#ifdef CONFIG_PM
915916
static void stop_read_write_urbs(struct usb_serial *serial)
916917
{
917918
int i, j;
@@ -988,6 +989,10 @@ static int sierra_resume(struct usb_serial *serial)
988989

989990
return ec ? -EIO : 0;
990991
}
992+
#else
993+
#define sierra_suspend NULL
994+
#define sierra_resume NULL
995+
#endif
991996

992997
static struct usb_serial_driver sierra_device = {
993998
.driver = {

0 commit comments

Comments
 (0)