Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f3eca8b authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] Shut up gcc warning in assabet.c



assabet.c:291: warning: 'scr' may be used uninitialized in this function

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 30a09616
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -293,7 +293,8 @@ static void __init get_assabet_scr(void)
	GPDR |= 0x3fc;			/* Configure GPIO 9:2 as outputs */
	GPDR |= 0x3fc;			/* Configure GPIO 9:2 as outputs */
	GPSR = 0x3fc;			/* Write 0xFF to GPIO 9:2 */
	GPSR = 0x3fc;			/* Write 0xFF to GPIO 9:2 */
	GPDR &= ~(0x3fc);		/* Configure GPIO 9:2 as inputs */
	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 */
	GPDR |= 0x3fc;			/*  restore correct pin direction */
	scr &= 0x3fc;			/* save as system configuration byte. */
	scr &= 0x3fc;			/* save as system configuration byte. */
	SCR_value = scr;
	SCR_value = scr;