[PATCH 1/1] cpufreq: exynos: Fix compilation warnings

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

 



Commit a403797bbd81 ("cpufreq: exynos: Convert exynos-cpufreq
to platform driver") forgot to change the function prototype.
Change it now to fix the following compilation warnings:

drivers/cpufreq/exynos-cpufreq.c:292:18: warning: incorrect type in initializer
(different argument counts)
drivers/cpufreq/exynos-cpufreq.c:292:18:    expected int ( *probe )( ... )
drivers/cpufreq/exynos-cpufreq.c:292:18:    got int ( static [toplevel]
*<noident> )( ... )
  CC      drivers/cpufreq/exynos-cpufreq.o
drivers/cpufreq/exynos-cpufreq.c:292:2: warning: initialization from
incompatible pointer type [enabled by default]
  .probe = exynos_cpufreq_init,
  ^
drivers/cpufreq/exynos-cpufreq.c:292:2: warning: (near initialization for
‘exynos_cpufreq_platdrv.probe’) [enabled by default]
  LD      drivers/cpufreq/built-in.o

WARNING: drivers/cpufreq/built-in.o(.data+0x644): Section mismatch in reference
from the variable exynos_cpufreq_platdrv to the function
.init.text:exynos_cpufreq_init()

Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
Cc: Lukasz Majewski <l.majewski@xxxxxxxxxxx>
---
 drivers/cpufreq/exynos-cpufreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index a2f57d4101fc..e238c46efaac 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -233,7 +233,7 @@ static struct cpufreq_driver exynos_driver = {
 #endif
 };
 
-static int __init exynos_cpufreq_init(void)
+static int exynos_cpufreq_init(struct platform_device *pdev)
 {
 	int ret = -EINVAL;
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux