diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-05-04 12:46:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:15:02 -0400 |
commit | 8a7130404948b966e98b1285e777972b4b3f2fa2 (patch) | |
tree | efd24b037bc641c565372dcd0b7dc5c39c2e777f /drivers/net/wireless/ath/ar9170 | |
parent | 7738231f98578c8cd5b367441b4aa79ce864856f (diff) |
ar9170: fix build when !CONFIG_PM
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>
Diffstat (limited to 'drivers/net/wireless/ath/ar9170')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c index d7b562dcebd2..d7c13c0177ca 100644 --- a/drivers/net/wireless/ath/ar9170/usb.c +++ b/drivers/net/wireless/ath/ar9170/usb.c | |||
@@ -689,7 +689,9 @@ static int ar9170_usb_probe(struct usb_interface *intf, | |||
689 | aru->common.exec_cmd = ar9170_usb_exec_cmd; | 689 | aru->common.exec_cmd = ar9170_usb_exec_cmd; |
690 | aru->common.callback_cmd = ar9170_usb_callback_cmd; | 690 | aru->common.callback_cmd = ar9170_usb_callback_cmd; |
691 | 691 | ||
692 | #ifdef CONFIG_PM | ||
692 | udev->reset_resume = 1; | 693 | udev->reset_resume = 1; |
694 | #endif | ||
693 | err = ar9170_usb_reset(aru); | 695 | err = ar9170_usb_reset(aru); |
694 | if (err) | 696 | if (err) |
695 | goto err_freehw; | 697 | goto err_freehw; |