* [PATCH] Input: i8042 -
@ 2008-02-09 4:43 Roland Dreier
0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2008-02-09 4:43 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: akpm, linux-kernel
Commit c18bab80 ("Input: i8042 - non-x86 build fix") introduced the
following warning on non-x86 builds:
drivers/input/serio/i8042.c: In function 'i8042_probe':
drivers/input/serio/i8042.c:1154: warning: unused variable 'param'
Fix this by moving the parameter variable declaration into the #ifdef too.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 2763394..65a74cf 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -1151,7 +1151,6 @@ static int __devinit i8042_setup_kbd(void)
static int __devinit i8042_probe(struct platform_device *dev)
{
int error;
- char param;
error = i8042_controller_selftest();
if (error)
@@ -1174,7 +1173,7 @@ static int __devinit i8042_probe(struct platform_device *dev)
}
#ifdef CONFIG_X86
if (i8042_dritek) {
- param = 0x90;
+ char param = 0x90;
error = i8042_command(¶m, 0x1059);
if (error)
goto out_fail;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-09 4:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-09 4:43 [PATCH] Input: i8042 - Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox