RE: Build error with [PATCH v10 3/4] drivers/i2c/busses/i2c-at91.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux