[patch 2.6.25-rc8] watchdog: fix platform driver hotplug/coldplug

Previous thread: [PATCH 0/3] clone64() and unshare64() system calls by sukadev on Wednesday, April 9, 2008 - 3:26 pm. (27 messages)

Next thread: [PATCH] pop previous section in alternative.c by Steven Rostedt on Wednesday, April 9, 2008 - 4:04 pm. (23 messages)
From: David Brownell
Date: Wednesday, April 9, 2008 - 3:45 pm

From: Kay Sievers <kay.sievers@vrfy.org>

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
hotpluggable watchdog drivers, to re-enable auto loading.

[ dbrownell@users.sourceforge.net: more drivers; registration fixes ]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc:  Wim Van Sebroeck <wim@iguana.be>
---
 drivers/watchdog/at32ap700x_wdt.c |    3 +++
 drivers/watchdog/at91rm9200_wdt.c |    1 +
 drivers/watchdog/davinci_wdt.c    |    2 ++
 drivers/watchdog/ks8695_wdt.c     |    1 +
 drivers/watchdog/mpc83xx_wdt.c    |    2 ++
 drivers/watchdog/mpcore_wdt.c     |    3 +++
 drivers/watchdog/mtx-1_wdt.c      |    2 ++
 drivers/watchdog/mv64x60_wdt.c    |    1 +
 drivers/watchdog/omap_wdt.c       |    1 +
 drivers/watchdog/pnx4008_wdt.c    |    2 ++
 drivers/watchdog/s3c2410_wdt.c    |    1 +
 drivers/watchdog/txx9wdt.c        |    1 +
 12 files changed, 20 insertions(+)

--- g26.orig/drivers/watchdog/at32ap700x_wdt.c	2008-04-09 15:19:13.000000000 -0700
+++ g26/drivers/watchdog/at32ap700x_wdt.c	2008-04-09 15:20:48.000000000 -0700
@@ -418,6 +418,9 @@ static int at32_wdt_resume(struct platfo
 #define at32_wdt_resume NULL
 #endif
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:at32_wdt");
+
 static struct platform_driver at32_wdt_driver = {
 	.remove		= __exit_p(at32_wdt_remove),
 	.suspend	= at32_wdt_suspend,
--- g26.orig/drivers/watchdog/at91rm9200_wdt.c	2008-04-09 15:16:18.000000000 -0700
+++ g26/drivers/watchdog/at91rm9200_wdt.c	2008-04-09 15:18:34.000000000 -0700
@@ -286,3 +286,4 @@ MODULE_AUTHOR("Andrew Victor");
 MODULE_DESCRIPTION("Watchdog driver for Atmel AT91RM9200");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
+MODULE_ALIAS("platform:at91_wdt");
--- g26.orig/drivers/watchdog/davinci_wdt.c	2008-04-09 15:16:17.000000000 -0700
+++ g26/drivers/watchdog/davinci_wdt.c	2008-04-09 ...
Previous thread: [PATCH 0/3] clone64() and unshare64() system calls by sukadev on Wednesday, April 9, 2008 - 3:26 pm. (27 messages)

Next thread: [PATCH] pop previous section in alternative.c by Steven Rostedt on Wednesday, April 9, 2008 - 4:04 pm. (23 messages)