diff mbox

[5/5] bcma: invalidate the mapped window over suspend/resume

Message ID alpine.LNX.2.00.1201130002080.5860@air.linux-foundation.org
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Linus Torvalds Jan. 13, 2012, 8:02 a.m. UTC
From: Rafał Miłecki <zajec5@gmail.com>
Date: Thu, 12 Jan 2012 23:51:30 -0800

This clears the current mapped window when suspending, so that the
resumed state will re-map them as required.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 drivers/bcma/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index febbc0a1222a..d185039690bc 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -253,6 +253,8 @@  int bcma_bus_suspend(struct bcma_bus *bus)
 				adrv->suspend(core);
 		}
 	}
+
+	bus->mapped_core = NULL;
 	return 0;
 }