Build error with [PATCH v10 3/4] drivers/i2c/busses/i2c-at91.c
Voss, Nikolaus
N.Voss at weinmann.de
Thu Jul 12 00:52:18 EDT 2012
Hi Stefano,
Stefano Salati wrote on 2012-07-11:
> Thank you for publishing your patches! I'm using a at91sam9x5 board and I've
> been trying to patch the TWI so to be able to use the physical I2C module.
> When compiling, I get this error:
>
> | CC drivers/i2c/busses/i2c-at91.o |
> drivers/i2c/busses/i2c-at91.c: In function 'at91_twi_probe': |
> drivers/i2c/busses/i2c-at91.c:350:2: error: implicit declaration of
> function 'clk_prepare' | drivers/i2c/busses/i2c-at91.c:394:2: error:
> implicit declaration of function 'clk_unprepare'
>
> I tried to grep these these 2 functions in the whole /linux-2.6.39 but I had
> no luck, I cannot find any declaration (even in files belonging to the board
> you've designed the patch for).
> Where I'm missing something?
the driver is designed for kernel 3.2 or newer, nevertheless it should work
on older kernels with slight modifications. You can simply delete the
clk_prepare()/unprepare() stuff for your kernel version.
Please report the SoC and I2C clients you tested the driver with, preferably
with a Tested-by tag, so I can include it in newer versions of the driver
to improve the chance of mainlining the driver.
Niko
More information about the linux-arm-kernel
mailing list