--- zzzz-none-000/linux-2.6.39.4/include/linux/spi/pxa2xx_spi.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/spi/pxa2xx_spi.h 2021-11-10 13:23:10.000000000 +0000 @@ -143,10 +143,12 @@ return 0; } +#ifndef CONFIG_GEN3_SPI static inline unsigned long clk_get_rate(struct clk *clk) { return 3686400; } +#endif #endif #endif