[PATCH] [OLPC] force GENERIC_GPIO to be defined when OLPC isselected

From: Andres Salomon
Date: Sun Apr 05 2009 - 14:01:37 EST


Hi,

Thanks for the report, and sorry for the late response. The patch below
*should* fix this, but I'm having trouble compiling generic gpio support in
with the config that you supplied.


CC drivers/i2c/busses/i2c-pca-platform.o
In file included from /home/dilinger/git/linux-2.6/arch/x86/include/asm/gpio.h:19,
from include/linux/gpio.h:7,
from drivers/i2c/busses/i2c-pca-platform.c:24:
include/asm-generic/gpio.h: In function âgpio_get_value_cansleepâ:
include/asm-generic/gpio.h:163: error: implicit declaration of function âgpio_get_valueâ
include/asm-generic/gpio.h: In function âgpio_set_value_cansleepâ:
include/asm-generic/gpio.h:169: error: implicit declaration of function âgpio_set_valueâ

This is, however, on a different kernel tree (2.6.29 + cs553x patches).



On Thu, 12 Mar 2009 10:00:33 -0700
Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:

> akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> > The mm-of-the-moment snapshot 2009-03-11-16-06 has been uploaded to
> >
> > http://userweb.kernel.org/~akpm/mmotm/
> >
> > and will soon be available at
> >
> > git://git.zen-sources.org/zen/mmotm.git
> >
> > It contains the following patches against 2.6.29-rc7:
>
> > cs553x-gpio-add-amd-cs5535-cs5536-gpio-driver-support.patch
> > cs553x-gpio-add-amd-cs5535-cs5536-gpio-driver-support-fix.patch
> > alsa-cs5535audio-free-olpc-quirks-from-reliance-on-mgeode_lx-cpu-optimization.patch
>
>
> With these kconfig options:
> CONFIG_SND_CS5535AUDIO=m
> CONFIG_OLPC=y
>
> build fails with:
> ERROR: "olpc_mic_bias" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_quirks" [sound/pci/cs5535audio/snd-cs5535audio.ko] undefined!
> ERROR:
> "olpc_quirks_cleanup" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_prequirks" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined! ERROR:
> "olpc_analog_input" [sound/pci/cs5535audio/snd-cs5535audio.ko]
> undefined!
>
>
> full .config is attached.
>





We've begun using the generic GPIO stuff for geodes, so OLPC implicitly
depends upon this. This patch forces selection of it.

Signed-off-by: Andres Salomon <dilinger@xxxxxxxxxx>
---
arch/x86/Kconfig | 1 +
sound/pci/cs5535audio/Makefile | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index bc2fbad..588ec18 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1925,6 +1925,7 @@ config GEODE_MFGPT_TIMER
config OLPC
bool "One Laptop Per Child support"
default n
+ select GENERIC_GPIO
help
Add support for detecting the unique features of the OLPC
XO hardware.
diff --git a/sound/pci/cs5535audio/Makefile b/sound/pci/cs5535audio/Makefile
index 9b5c689..ccc6422 100644
--- a/sound/pci/cs5535audio/Makefile
+++ b/sound/pci/cs5535audio/Makefile
@@ -4,9 +4,7 @@

snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o
-ifdef CONFIG_GENERIC_GPIO
snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
-endif

# Toplevel Module Dependency
obj-$(CONFIG_SND_CS5535AUDIO) += snd-cs5535audio.o
--
1.5.6.5

--
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/