From: Viresh Kumar Date: Thu, 9 Jan 2014 15:08:42 +0000 (+0530) Subject: ARM: SA1100: Create dummy clk_get_rate() to avoid build failures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ad04fb30db0341d0b1134e2f592d9146c9abb64;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: SA1100: Create dummy clk_get_rate() to avoid build failures There are some parts of common kernel which would be using routines like clk_get_rate() on some platforms. Currently, they wouldn't be called for SA1100 boards, but they are needed for successful kernel compilation. Create a dummy clk_get_rate() routine for SA1100 which can be called by the cpufreq core. More dummy routines might be added later if necessary. Cc: Russell King Cc: Arnd Bergmann Reported-by: Olof Johansson Signed-off-by: Viresh Kumar [rjw: Changelog] Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c index 172ebd0ee0a2..9fa6a990cf03 100644 --- a/arch/arm/mach-sa1100/clock.c +++ b/arch/arm/mach-sa1100/clock.c @@ -33,6 +33,13 @@ struct clk clk_##_name = { \ static DEFINE_SPINLOCK(clocks_lock); +/* Dummy clk routine to build generic kernel parts that may be using them */ +unsigned long clk_get_rate(struct clk *clk) +{ + return 0; +} +EXPORT_SYMBOL(clk_get_rate); + static void clk_gpio27_enable(struct clk *clk) { /*