Commit 7cb290d3 authored by Claudiu.Beznea@microchip.com's avatar Claudiu.Beznea@microchip.com Committed by Sebastian Reichel

power: reset: at91-reset: use r4 as tmp argument

Use r4 as temporary register. On ARM r0-r3 should be used to hold
function arguments.
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 25b80b7d
...@@ -113,8 +113,8 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode, ...@@ -113,8 +113,8 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode,
"beq 1f\n\t" "beq 1f\n\t"
/* Then, test that the RAM controller is enabled */ /* Then, test that the RAM controller is enabled */
"ldr r0, [%1]\n\t" "ldr r4, [%1]\n\t"
"cmp r0, #0\n\t" "cmp r4, #0\n\t"
/* Align to cache lines */ /* Align to cache lines */
".balign 32\n\t" ".balign 32\n\t"
...@@ -138,7 +138,7 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode, ...@@ -138,7 +138,7 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode,
"r" (1), "r" (1),
"r" cpu_to_le32(AT91_DDRSDRC_LPCB_POWER_DOWN), "r" cpu_to_le32(AT91_DDRSDRC_LPCB_POWER_DOWN),
"r" (reset->args) "r" (reset->args)
: "r0"); : "r4");
return NOTIFY_DONE; return NOTIFY_DONE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment