summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-11-21 17:01:13 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-21 17:01:13 +0000
commit2f3eca8b4f1e9ff3c712519170f5c070ddbddff9 (patch)
treee4037cfe2a4476d2ab08b18ff91c46a2ab494e53 /arch
parent30a09616df38ab282e66084f40fb438fe715b2ec (diff)
downloadop-kernel-dev-2f3eca8b4f1e9ff3c712519170f5c070ddbddff9.zip
op-kernel-dev-2f3eca8b4f1e9ff3c712519170f5c070ddbddff9.tar.gz
[ARM] Shut up gcc warning in assabet.c
assabet.c:291: warning: 'scr' may be used uninitialized in this function Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-sa1100/assabet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c
index 75efb5d..a66ac61 100644
--- a/arch/arm/mach-sa1100/assabet.c
+++ b/arch/arm/mach-sa1100/assabet.c
@@ -293,7 +293,8 @@ static void __init get_assabet_scr(void)
GPDR |= 0x3fc; /* Configure GPIO 9:2 as outputs */
GPSR = 0x3fc; /* Write 0xFF to GPIO 9:2 */
GPDR &= ~(0x3fc); /* Configure GPIO 9:2 as inputs */
- for(i = 100; i--; scr = GPLR); /* Read GPIO 9:2 */
+ for(i = 100; i--; ) /* Read GPIO 9:2 */
+ scr = GPLR;
GPDR |= 0x3fc; /* restore correct pin direction */
scr &= 0x3fc; /* save as system configuration byte. */
SCR_value = scr;
OpenPOWER on IntegriCloud