power: reset: at91-sama5d2_shdwc: fix clobber list
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 May 2017 09:49:15 +0000 (11:49 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 11:05:29 +0000 (13:05 +0200)
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>
drivers/power/reset/at91-sama5d2_shdwc.c

index 90b0b5a70ce52a303017319e31afb4bd390d230f..55fce8b75245b3c7542d6c38ee1a31c1297e3dca 100644 (file)
@@ -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,