From: Alexander Beregalov Date: Mon, 4 May 2009 16:46:25 +0000 (+0400) Subject: ar9170: fix build when !CONFIG_PM X-Git-Tag: v2.6.31-rc1~14^2~525^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a7130404948b966e98b1285e777972b4b3f2fa2;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c index d7b562d..d7c13c0 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, 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;