Skip to content

Commit 96cfb97

Browse files
Abhilash Kesavankgene
authored andcommitted
ARM: SAMSUNG: Fix build failure in PM CRC check code
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. Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
1 parent dc5b966 commit 96cfb97

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎arch/arm/plat-samsung/pm-check.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ static inline int in_region(void *ptr, int size, void *what, size_t whatsz)
164164
*/
165165
static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
166166
{
167-
void *save_at = phys_to_virt(s3c_sleep_save_phys);
168167
unsigned long addr;
169168
unsigned long left;
170169
void *stkpage;
@@ -192,11 +191,6 @@ static u32 *s3c_pm_runcheck(struct resource *res, u32 *val)
192191
goto skip_check;
193192
}
194193

195-
if (in_region(ptr, left, save_at, 32*4 )) {
196-
S3C_PMDBG("skipping %08lx, has save block in\n", addr);
197-
goto skip_check;
198-
}
199-
200194
/* calculate and check the checksum */
201195

202196
calc = crc32_le(~0, ptr, left);

0 commit comments

Comments
 (0)