Skip to content

Commit 59c87de

Browse files
committed
Merge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung
* 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: SAMSUNG: Fix warning 's3c_pm_show_resume_irqs' defined but not used ARM: SAMSUNG: Fix build failure in PM CRC check code ARM: S5P: Remove unused s3c_pm_check_resume_pin
2 parents a78eda5 + baab730 commit 59c87de

3 files changed

Lines changed: 3 additions & 19 deletions

File tree

‎arch/arm/plat-s5p/pm.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@
1919

2020
#define PFX "s5p pm: "
2121

22-
/* s3c_pm_check_resume_pin
23-
*
24-
* check to see if the pin is configured correctly for sleep mode, and
25-
* make any necessary adjustments if it is not
26-
*/
27-
28-
static void s3c_pm_check_resume_pin(unsigned int pin, unsigned int irqoffs)
29-
{
30-
/* nothing here yet */
31-
}
32-
3322
/* s3c_pm_configure_extint
3423
*
3524
* configure all external interrupt pins

‎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);

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ void s3c_pm_do_restore_core(struct sleep_save *ptr, int count)
214214
*
215215
* print any IRQs asserted at resume time (ie, we woke from)
216216
*/
217-
static void s3c_pm_show_resume_irqs(int start, unsigned long which,
218-
unsigned long mask)
217+
static void __maybe_unused s3c_pm_show_resume_irqs(int start,
218+
unsigned long which,
219+
unsigned long mask)
219220
{
220221
int i;
221222

0 commit comments

Comments
 (0)