mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 2.6.19-git] watchdog:  at91_wdt build fix
@ 2006-12-08  7:27 David Brownell
  2006-12-10 19:23 ` Wim Van Sebroeck
  0 siblings, 1 reply; 4+ messages in thread
From: David Brownell @ 2006-12-08  7:27 UTC (permalink / raw)
  To: wim, linux-kernel

Recent miscdev changes broke various drivers, so they won't build.
This fixes another one.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

Index: at91/drivers/char/watchdog/at91rm9200_wdt.c
===================================================================
--- at91.orig/drivers/char/watchdog/at91rm9200_wdt.c	2006-12-07 21:37:00.000000000 -0800
+++ at91/drivers/char/watchdog/at91rm9200_wdt.c	2006-12-07 21:38:28.000000000 -0800
@@ -203,9 +203,9 @@ static int __init at91wdt_probe(struct p
 {
 	int res;
 
-	if (at91wdt_miscdev.dev)
+	if (at91wdt_miscdev.parent)
 		return -EBUSY;
-	at91wdt_miscdev.dev = &pdev->dev;
+	at91wdt_miscdev.parent = &pdev->dev;
 
 	res = misc_register(&at91wdt_miscdev);
 	if (res)
@@ -221,7 +221,7 @@ static int __exit at91wdt_remove(struct 
 
 	res = misc_deregister(&at91wdt_miscdev);
 	if (!res)
-		at91wdt_miscdev.dev = NULL;
+		at91wdt_miscdev.parent = NULL;
 
 	return res;
 }

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

end of thread, other threads:[~2006-12-11 22:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-08  7:27 [patch 2.6.19-git] watchdog: at91_wdt build fix David Brownell
2006-12-10 19:23 ` Wim Van Sebroeck
2006-12-10 21:10   ` David Brownell
2006-12-11 22:00     ` Wim Van Sebroeck

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

all inboxes | Powered by JetHome®