aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/reset/at91-sama5d2_shdwc.c
diff options
context:
space:
mode:
authorAlexandre Belloni2017-05-31 11:49:15 +0200
committerSebastian Reichel2017-06-08 13:05:29 +0200
commitbe04a0d77eb1896f56eee5ef8f2f5281008c22ec (patch)
tree84b7db1185e51631d12f11303bd579862cf266bc /drivers/power/reset/at91-sama5d2_shdwc.c
parent2e9bbbf694fd9ed4d96a303dadce4d8ccf2a4af3 (diff)
power: reset: at91-sama5d2_shdwc: fix clobber list
Assembly in at91_lpddr_poweroff has r0 in the clobber list but uses r6. Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/reset/at91-sama5d2_shdwc.c')
-rw-r--r--drivers/power/reset/at91-sama5d2_shdwc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c
index 90b0b5a70ce5..55fce8b75245 100644
--- a/drivers/power/reset/at91-sama5d2_shdwc.c
+++ b/drivers/power/reset/at91-sama5d2_shdwc.c
@@ -132,7 +132,7 @@ static void at91_lpddr_poweroff(void)
"r" cpu_to_le32(AT91_DDRSDRC_LPDDR2_PWOFF),
"r" (at91_shdwc->at91_shdwc_base),
"r" cpu_to_le32(AT91_SHDW_KEY | AT91_SHDW_SHDW)
- : "r0");
+ : "r6");
}
static u32 at91_shdwc_debouncer_value(struct platform_device *pdev,