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

Hi Group,

Yesterday I checked out the Omap kernel from , 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]
ERROR: "omap_ctrl_readl" [sound/soc/omap/snd-soc-omap-mcbsp.ko]
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[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-

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


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