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 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html