public inbox for linux-kernel@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
  2011-10-09 15:47 ` Marc Dietrich
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Pettersson @ 2011-10-08 17:29 UTC (permalink / raw)
  To: linux-tegra; +Cc: linux-kernel

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@it.uu.se>
---

--- 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:32 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
2011-10-09 15:47 ` Marc Dietrich
2011-10-10 17:25   ` Stephen Warren
2011-10-10 20:20     ` Julian Andres Klode
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
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