Skip to contentSkip to conversation

ARM: SAMSUNG: Fix build failure in PM CRC check code

PATCH New Kukjin Kim 1 participant 1 message Apr 2, 2011

Subsystems (3)
lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH 1/1 ARM: SAMSUNG: Fix build failure in PM CRC check code

From: Abhilash Kesavan <[email protected]>

This patch fixes build error that occurs on enabling the Samsung specific PM CRC check code. Missed removing this reference of s3c_sleep_save_phys during move to generic cpu suspend/resume support.

---
 arch/arm/plat-samsung/pm-check.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
arch/arm/plat-samsung/pm-check.c +0 -6
index e4baf76..6b733fa 100644
@@ -164,7 +164,6 @@ static inline int in_region(void *ptr, int size, void *what, size_t whatsz)
  */
 static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
 {
-	void *save_at = phys_to_virt(s3c_sleep_save_phys);
 	unsigned long addr;
 	unsigned long left;
 	void *stkpage;
@@ -192,11 +191,6 @@ static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
 			goto skip_check;
 		}
 
-		if (in_region(ptr, left, save_at, 32*4 )) {
-			S3C_PMDBG("skipping %08lx, has save block in\n", addr);
-			goto skip_check;
-		}
-
 		/* calculate and check the checksum */
 
 		calc = crc32_le(~0, ptr, left);
Signature · 1 line
1.7.1