Messages in this thread Patch in this message | | | Date | Thu, 29 May 2008 09:56:33 -0700 | From | Randy Dunlap <> | Subject | [PATCH linux-next] serio: add ifdef for i8042 build fix |
| |
From: Randy Dunlap <randy.dunlap@oracle.com>
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@oracle.com> --- 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;
---
| |