Building latest linux-omap-2.6 module building fails due to omap_ctrl_X

Hi Group,

Yesterday I checked out the Omap kernel from
http://www.sakoman.net/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git , as
I'm new to git I don't know exactly which revision I have..
(yesterdays latest).

When building the kernel modules I get this error:
CC [M] lib/crc-itu-t.o
  Building modules, stage 2.
  MODPOST 632 modules
ERROR: "omap_ctrl_writel" [sound/soc/omap/snd-soc-omap-mcbsp.ko]
undefined!
ERROR: "omap_ctrl_readl" [sound/soc/omap/snd-soc-omap-mcbsp.ko]
undefined!
ERROR: "hrtimer_nanosleep" [drivers/hwmon/omap34xx_temp.ko] undefined!
ERROR: "omap_ctrl_writel" [drivers/hwmon/omap34xx_temp.ko] undefined!
ERROR: "omap_ctrl_readl" [drivers/hwmon/omap34xx_temp.ko] undefined!
WARNING: modpost: Found 10 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

I don't know what's the problem here. Seems the omap_ctrl_X functions
are in arch/arm/mach-omap2/control.c and declared in arch/arm/plat-
omap/include/mach/control.h

Anyone that knows a pointer of where to start searching?

PS. Sorry if this message is repeated, I don't see my previous ones
come up in the thread..

Wkr,
Joep

Hi Joep, I had the same problem. I was building all the sound drivers
as modules. The problem disappeared when I built them in. Which is too
bad because I wanted them to be modules...
Regards,
mmaquina