public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix drivers/staging/nvec linkage error when keyboard is disabled
@ 2011-10-08 17:29 Mikael Pettersson
       [not found] ` <20112.34922.209107.730268-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Pettersson @ 2011-10-08 17:29 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA

Building linux-3.1-rc9 for the Tegra ARM SoC with CONFIG_MFD_NVEC=y
and CONFIG_KEYBOARD_NVEC=n results in the following linkage error:

drivers/built-in.o: In function `tegra_nvec_probe':
/tmp/linux-3.1-rc9/drivers/staging/nvec/nvec.c:373: undefined reference to `nvec_kbd_init'
make: *** [.tmp_vmlinux1] Error 1

Fixed by #ifdef:ing the call to nvec_kbd_init(), similar to the
existing #ifdef CONFIG_SERIO_NVEC_PS2 around the nvec_ps2() call.

Signed-off-by: Mikael Pettersson <mikpe-1zs4UD6AkMk@public.gmane.org>
---

--- linux-3.1-rc9/drivers/staging/nvec/nvec.c.~1~	2011-10-08 16:28:20.000000000 +0200
+++ linux-3.1-rc9/drivers/staging/nvec/nvec.c	2011-10-08 19:09:18.000000000 +0200
@@ -370,7 +370,9 @@ static int __devinit tegra_nvec_probe(st
 	nvec_write_async(nvec, EC_ENABLE_EVENT_REPORTING,
 				sizeof(EC_ENABLE_EVENT_REPORTING));
 
+#ifdef CONFIG_KEYBOARD_NVEC
 	nvec_kbd_init(nvec);
+#endif
 #ifdef CONFIG_SERIO_NVEC_PS2
 	nvec_ps2(nvec);
 #endif

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-17 22:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-08 17:29 [PATCH] fix drivers/staging/nvec linkage error when keyboard is disabled Mikael Pettersson
     [not found] ` <20112.34922.209107.730268-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2011-10-09 15:47   ` Marc Dietrich
2011-10-10 17:25     ` Stephen Warren
     [not found]       ` <74CDBE0F657A3D45AFBB94109FB122FF173B23B539-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-10 20:20         ` Julian Andres Klode
     [not found]           ` <20111010202011.GA7220-4HMq4SXA452hPH1hqNUYSQ@public.gmane.org>
2011-10-11  8:15             ` Re: [PATCH] fix drivers/staging/nvec linkage error when keyboard isdisabled Marc Dietrich
2011-10-12  9:19               ` Julian Andres Klode
2011-10-17 22:20         ` [PATCH] fix drivers/staging/nvec linkage error when keyboard is disabled Greg KH
     [not found]           ` <20111017222019.GA2410-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2011-10-17 22:20             ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox