From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 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 5bec838b3c9f5a88dc5ffc6b93a98fb032a457d8 Author: Oliver Neukum <oliver@xxxxxxxxxx> AuthorDate: Fri Sep 4 23:19:53 2009 +0200 Commit: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> CommitDate: Thu Sep 17 10:42:51 2009 +1000 USB: support for autosuspend in sierra while online Cc: Greg KH <greg@xxxxxxxxx> Cc: Oliver Neukum <oliver@xxxxxxxxxx> Cc: Elina Pasheva <epasheva@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/sierra.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN drivers/usb/serial/sierra.c~drivers-usb-serial-sierrac-fix-config_pm=n-build drivers/usb/serial/sierra.c --- a/drivers/usb/serial/sierra.c~drivers-usb-serial-sierrac-fix-config_pm=n-build +++ a/drivers/usb/serial/sierra.c @@ -912,6 +912,7 @@ static void sierra_release(struct usb_se } } +#ifdef CONFIG_PM static void stop_read_write_urbs(struct usb_serial *serial) { int i, j; @@ -988,6 +989,10 @@ static int sierra_resume(struct usb_seri return ec ? -EIO : 0; } +#else +#define sierra_suspend NULL +#define sierra_resume NULL +#endif static struct usb_serial_driver sierra_device = { .driver = { _ -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html