]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ar9170: fix build when !CONFIG_PM
authorAlexander Beregalov <a.beregalov@gmail.com>
Mon, 4 May 2009 16:46:25 +0000 (20:46 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:15:02 +0000 (15:15 -0400)
Fix this build error when CONFIG_PM is not set:
drivers/net/wireless/ath/ar9170/usb.c: In function 'ar9170_usb_probe':
drivers/net/wireless/ath/ar9170/usb.c:692:
error: 'struct usb_device' has no member named 'reset_resume'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/usb.c

index d7b562dcebd204702c2513a950285f80e89bf2be..d7c13c0177caf5dec5b5d49252e293a51e7a5f21 100644 (file)
@@ -689,7 +689,9 @@ static int ar9170_usb_probe(struct usb_interface *intf,
        aru->common.exec_cmd = ar9170_usb_exec_cmd;
        aru->common.callback_cmd = ar9170_usb_callback_cmd;
 
+#ifdef CONFIG_PM
        udev->reset_resume = 1;
+#endif
        err = ar9170_usb_reset(aru);
        if (err)
                goto err_freehw;