SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH] sh: kernel: cpu: provide 'NULL' parameter for calling cpuidle_register().
@ 2013-07-31  7:23 Chen Gang
  2013-07-31  7:35 ` Daniel Lezcano
  2013-07-31  8:37 ` Chen Gang
  0 siblings, 2 replies; 4+ messages in thread
From: Chen Gang @ 2013-07-31  7:23 UTC (permalink / raw)
  To: linux-sh

Need provide additional parameter for calling cpuidle_register() just
like some of another architectures have done, or can not pass compiling.

The related error (with kfr2r09_defconfig):

    CC      arch/sh/kernel/cpu/shmobile/cpuidle.o
  arch/sh/kernel/cpu/shmobile/cpuidle.c: In function 'sh_mobile_setup_cpuidle':
  arch/sh/kernel/cpu/shmobile/cpuidle.c:102:2: error: too few arguments to function 'cpuidle_register'
    return cpuidle_register(&cpuidle_driver);
    ^
  In file included from arch/sh/kernel/cpu/shmobile/cpuidle.c:16:0:
  include/linux/cpuidle.h:130:12: note: declared here
   extern int cpuidle_register(struct cpuidle_driver *drv,
            ^

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/sh/kernel/cpu/shmobile/cpuidle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/cpu/shmobile/cpuidle.c b/arch/sh/kernel/cpu/shmobile/cpuidle.c
index d306225..5f88393 100644
--- a/arch/sh/kernel/cpu/shmobile/cpuidle.c
+++ b/arch/sh/kernel/cpu/shmobile/cpuidle.c
@@ -99,5 +99,5 @@ int __init sh_mobile_setup_cpuidle(void)
 	if (sh_mobile_sleep_supported & SUSP_SH_STANDBY)
 		cpuidle_driver.states[2].disabled = false;
 
-	return cpuidle_register(&cpuidle_driver);
+	return cpuidle_register(&cpuidle_driver, NULL);
 }
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-31  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31  7:23 [PATCH] sh: kernel: cpu: provide 'NULL' parameter for calling cpuidle_register() Chen Gang
2013-07-31  7:35 ` Daniel Lezcano
2013-07-31  8:37 ` Chen Gang
2013-07-31  9:04   ` [PATCH] scripts/recordmcount.pl: remove "-m32" for sh architecture Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox