Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: drivers/staging/brcm80211/brcmfmac/dhd.h

Issue 6851008: Fix for suspend/resume bug Base URL: http://git.chromium.org/git/kernel-next.git@chromeos-2.6.37
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: drivers/staging/brcm80211/brcmfmac/dhd.h
diff --git a/drivers/staging/brcm80211/brcmfmac/dhd.h b/drivers/staging/brcm80211/brcmfmac/dhd.h
index a78b20a0cc79c85d87183bc6466a82b2b2db5daa..f9ddabe91da01830e6aa2fa104a03f6766a3cd24 100644
--- a/drivers/staging/brcm80211/brcmfmac/dhd.h
+++ b/drivers/staging/brcm80211/brcmfmac/dhd.h
@@ -37,6 +37,10 @@
#include <wlioctl.h>
+#if defined(CONFIG_PM_SLEEP)
+#include <linux/suspend.h>
+#endif
Olof Johansson 2011/04/14 18:13:43 No need to ifdef the include.
+
/* Forward decls */
struct dhd_bus;
struct dhd_prot;
@@ -124,6 +128,8 @@ typedef struct dhd_pub {
#if defined(CONFIG_PM_SLEEP)
+extern volatile bool dhd_mmc_suspend;
Olof Johansson 2011/04/14 18:13:43 Extern volatile? Huge red flags. Please move to an
+
#define DHD_PM_RESUME_WAIT_INIT(a) DECLARE_WAIT_QUEUE_HEAD(a);
#define _DHD_PM_RESUME_WAIT(a, b) do {\
int retry = 0; \

Powered by Google App Engine
This is Rietveld 408576698