[PATCH linux-next] serio: add ifdef for i8042 build fix

From: Randy Dunlap
Date: Thu May 29 2008 - 12:44:23 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Restrict variable usage by bounding it with ifdef/endif CONFIG_PNP.

linux-next-20080529/drivers/input/serio/i8042-x86ia64io.h:590: error: 'i8042_nopnp' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
drivers/input/serio/i8042-x86ia64io.h | 2 ++
1 file changed, 2 insertions(+)

--- linux-next-20080529.orig/drivers/input/serio/i8042-x86ia64io.h
+++ linux-next-20080529/drivers/input/serio/i8042-x86ia64io.h
@@ -586,9 +586,11 @@ static int __init i8042_platform_init(vo
i8042_aux_irq = I8042_MAP_IRQ(12);

#if defined(__i386__) || defined(__x86_64__)
+#ifdef CONFIG_PNP
if (dmi_check_system(i8042_dmi_nopnp_table))
i8042_nopnp = 1;
#endif
+#endif
retval = i8042_pnp_init();
if (retval)
return retval;



---
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/