usb: cdc-acm: Fix compilation warning in cdc-acm driver.
Steve Lin [Tue, 14 Feb 2012 22:26:03 +0000 (14:26 -0800)]
Bug 934177

Change-Id: If101278cf553bd92ad98a9485cedf0c3bf1df39a
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/83913

drivers/usb/class/cdc-acm.c

index d3bb2fc..e133159 100644 (file)
@@ -1381,11 +1381,12 @@ static int acm_suspend(struct usb_interface *intf, pm_message_t message)
 static int acm_resume(struct usb_interface *intf)
 {
        struct acm *acm = usb_get_intfdata(intf);
-       struct acm_wb *wb;
        int rv = 0;
        int cnt;
 #ifdef CONFIG_PM
        struct urb *res;
+#else
+       struct acm_wb *wb;
 #endif
 
        spin_lock_irq(&acm->read_lock);