[patch] drivers/watchdog/geodewdt.c: build fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, May 30, 2008 - 8:02 am

* Wim Van Sebroeck <wim@iguana.be> wrote:


-tip testing found the following build failure on latest -git:

  drivers/watchdog/geodewdt.c: In function 'geodewdt_probe':
  drivers/watchdog/geodewdt.c:225: error: too many arguments to function 'geode_mfgpt_alloc_timer'
  make[1]: *** [drivers/watchdog/geodewdt.o] Error 1
  make: *** [drivers/watchdog/geodewdt.o] Error 2

with this config:

  http://redhat.com/~mingo/misc/config-Fri_May_30_15_19_52_CEST_2008.bad

find the fix below.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/watchdog/geodewdt.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: tip/drivers/watchdog/geodewdt.c
===================================================================
--- tip.orig/drivers/watchdog/geodewdt.c
+++ tip/drivers/watchdog/geodewdt.c
@@ -221,8 +221,7 @@ geodewdt_probe(struct platform_device *d
 {
 	int ret, timer;
 
-	timer = geode_mfgpt_alloc_timer(MFGPT_TIMER_ANY,
-					MFGPT_DOMAIN_WORKING, THIS_MODULE);
+	timer = geode_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING);
 
 	if (timer == -1) {
 		printk(KERN_ERR "geodewdt:  No timers were available\n");
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [WATCHDOG] v2.6.26-rc3 patches, Alan Cox, (Sun May 25, 3:08 am)
[WATCHDOG] v2.6.26-rc3 patches, Wim Van Sebroeck, (Sun May 25, 3:09 am)
Re: [WATCHDOG] v2.6.26-rc3 patches, Wim Van Sebroeck, (Sun May 25, 10:05 am)
[patch] drivers/watchdog/geodewdt.c: build fix, Ingo Molnar, (Fri May 30, 8:02 am)
Re: drivers/watchdog/geodewdt.c: build fix, Jordan Crouse, (Fri May 30, 8:39 am)
Re: drivers/watchdog/geodewdt.c: build fix, David Brigada, (Fri May 30, 8:54 am)
Re: drivers/watchdog/geodewdt.c: build fix, Jordan Crouse, (Fri May 30, 9:05 am)
Re: drivers/watchdog/geodewdt.c: build fix, Lennart Sorensen, (Fri May 30, 9:24 am)
Re: drivers/watchdog/geodewdt.c: build fix, Jordan Crouse, (Fri May 30, 9:48 am)