From: Steven Miao Date: Thu, 17 May 2012 09:38:09 +0000 (+0800) Subject: blackfin: mach-bf609: pm: cleanup bfin_deepsleep X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a84775e999a5579e10f7297776c71b0be2ebd74;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git blackfin: mach-bf609: pm: cleanup bfin_deepsleep In bfin_deepsleep(), using register instead of local variable and remove unused dpmc register read. Signed-off-by: Steven Miao Signed-off-by: Bob Liu --- diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c index 849d77e5631c..df3b9b973f62 100644 --- a/arch/blackfin/mach-bf609/pm.c +++ b/arch/blackfin/mach-bf609/pm.c @@ -138,7 +138,6 @@ void bfin_deepsleep(unsigned long mask) bfin_write32(DPM0_WAKE_EN, 0x10); bfin_write32(DPM0_WAKE_POL, 0x10); - dpm0_ctl = bfin_read32(DPM0_CTL); dpm0_ctl = 0x00000008; bfin_write32(DPM0_CTL, dpm0_ctl); SSYNC(); @@ -149,13 +148,13 @@ void bfin_deepsleep(unsigned long mask) ); #ifdef CONFIG_BFIN_PM_WAKEUP_TIME_BENCH __asm__ __volatile__( - "%0 = 0;" - "CYCLES = %0;" - "CYCLES2 = %0;" - "%0 = SYSCFG;" - "BITSET(%0, 1);" - "SYSCFG = %0;" - : "=d,a" (dpm0_ctl) : + "R0 = 0;" + "CYCLES = R0;" + "CYCLES2 = R0;" + "R0 = SYSCFG;" + "BITSET(R0, 1);" + "SYSCFG = R0;" + : : : "R0" ); #endif