[2.6 patch] fix watchdog/at91rm9200_wdt.c compilation

Previous thread: [PATCH] Let isp116x-hcd get IRQ flags from resource by Marc Zyngier on Friday, August 8, 2008 - 8:41 am. (1 message)

Next thread: [2.6 patch] fix watchdog/wdt285.c compilation by Adrian Bunk on Friday, August 8, 2008 - 9:03 am. (2 messages)
From: Adrian Bunk
Date: Friday, August 8, 2008 - 8:57 am

This patch fixes the following compile error:

<--  snip  -->

...
  CC      drivers/watchdog/at91rm9200_wdt.o
at91rm9200_wdt.c:188: error: 'at91_wdt_ioctl' undeclared here (not in a 
make[3]: *** [drivers/watchdog/at91rm9200_wdt.o] Error 1

<--  snip  -->

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
0cbc8aa3114bc48a868de8cc9a1706b6c81dd3f4 
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c
index 2313f44..09363f1 100644
--- a/drivers/watchdog/at91rm9200_wdt.c
+++ b/drivers/watchdog/at91rm9200_wdt.c
@@ -129,7 +129,7 @@ static struct watchdog_info at91_wdt_info = {
 /*
  * Handle commands from user-space.
  */
-static long at91_wdt_ioct(struct file *file,
+static long at91_wdt_ioctl(struct file *file,
 					unsigned int cmd, unsigned long arg)
 {
 	void __user *argp = (void __user *)arg;

--

From: Russell King
Date: Saturday, August 9, 2008 - 3:01 am

Can we please get these fixes to Linus ASAP - this kind and quantity
of breakage should have never made it to Linus' kernel.  (s3c2410_wdt,
at91rm9200_wdt, and wdt285 all broken with trivial compile errors).

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
--

Previous thread: [PATCH] Let isp116x-hcd get IRQ flags from resource by Marc Zyngier on Friday, August 8, 2008 - 8:41 am. (1 message)

Next thread: [2.6 patch] fix watchdog/wdt285.c compilation by Adrian Bunk on Friday, August 8, 2008 - 9:03 am. (2 messages)