Skip to content

Commit

Permalink
drivers/usb/serial/sierra.c: fix CONFIG_PM=n build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Date:   Fri Sep 4 23:19:53 2009 +0200

    USB: support for autosuspend in sierra while online

Cc: Greg KH <[email protected]>
Cc: Oliver Neukum <[email protected]>
Cc: Elina Pasheva <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Sep 24, 2009
1 parent d68721e commit cd60451
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/usb/serial/sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ static void sierra_release(struct usb_serial *serial)
}
}

#ifdef CONFIG_PM
static void stop_read_write_urbs(struct usb_serial *serial)
{
int i, j;
Expand Down Expand Up @@ -988,6 +989,10 @@ static int sierra_resume(struct usb_serial *serial)

return ec ? -EIO : 0;
}
#else
#define sierra_suspend NULL
#define sierra_resume NULL
#endif

static struct usb_serial_driver sierra_device = {
.driver = {
Expand Down

0 comments on commit cd60451

Please sign in to comment.