Skip to content

Commit 7cb290d

Browse files
claudiubezneasre
authored andcommitted
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: Claudiu Beznea <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 25b80b7 commit 7cb290d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/power/reset/at91-reset.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode,
113113
"beq 1f\n\t"
114114

115115
/* Then, test that the RAM controller is enabled */
116-
"ldr r0, [%1]\n\t"
117-
"cmp r0, #0\n\t"
116+
"ldr r4, [%1]\n\t"
117+
"cmp r4, #0\n\t"
118118

119119
/* Align to cache lines */
120120
".balign 32\n\t"
@@ -138,7 +138,7 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode,
138138
"r" (1),
139139
"r" cpu_to_le32(AT91_DDRSDRC_LPCB_POWER_DOWN),
140140
"r" (reset->args)
141-
: "r0");
141+
: "r4");
142142

143143
return NOTIFY_DONE;
144144
}

0 commit comments

Comments
 (0)