With the attached config, I get the following build failure:
LD init/built-in.o
drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error:
undefined reference to 'i2c_unregister_device'
This is after a make oldconfig, perhaps a missed dependency in Kconfig?
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote:
> With the attached config, I get the following build failure:
>
> LD init/built-in.o
> drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error:
> undefined reference to 'i2c_unregister_device'
I get following with your config:
LD init/built-in.o
drivers/built-in.o: In function `v4l2_device_unregister':
(.text+0x1186cb): undefined reference to `i2c_unregister_device'
make: *** [vmlinux] Error 1
and it looks like it wants to build in videodev.o (which provides
v4l2_device_unregister()):
CONFIG_VIDEO_DEV=y
This function calls i2c_unregister_device() if IS_ENABLED(CONFIG_I2C) but
i2c support is compiled as a module:
CONFIG_I2C=m
which explains the link error.
However, this has nothing to do with clk-lpt.c or anything related to clock
framework as far as I can tell.