]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] Fix pcwd_init_module crash
authorWim Van Sebroeck <wim@iguana.be>
Sun, 29 Jul 2007 18:46:50 +0000 (18:46 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 29 Jul 2007 18:58:39 +0000 (18:58 +0000)
Fix for the problem detected by Ingo Molnar:
enabling CONFIG_PCWATCHDOG=y crashes bzImage bootup.

The reason for this can be found in drivers/makefile
We first do:
obj-y                           += char/
and later we do:
obj-y                           += base/ block/ misc/ mfd/ net/ media/

So if we put a platform or isa or usb bus driver in char/watchdog
(which is called from the Makefile in drivers/char/Makefile)
then we didn't have the different device drivers initialized yet
(they are in drivers/base and drivers/usb and ...)

This fix makes sure that we compile the watchdog drivers after
drivers/base, drivers/misc, drivers/pci and drivers/usb.
We also do the compile after hwmon because in the future the
watchdog temperature support will use the hwmon system.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/Makefile
drivers/char/Makefile

index a9e4c5f922a041b094d219b5581398e8035ef1e4..f0878b2ec55ea47d5a87f5069890cca4e5de7ca3 100644 (file)
@@ -66,6 +66,7 @@ obj-y                         += i2c/
 obj-$(CONFIG_W1)               += w1/
 obj-$(CONFIG_POWER_SUPPLY)     += power/
 obj-$(CONFIG_HWMON)            += hwmon/
+obj-$(CONFIG_WATCHDOG)         += char/watchdog/
 obj-$(CONFIG_PHONE)            += telephony/
 obj-$(CONFIG_MD)               += md/
 obj-$(CONFIG_BT)               += bluetooth/
index 8fecaf4010b1dafefd06445086d8a671373abbeb..2bc3a55ee407523d342d7c7bcd71a9d6bfb9ac96 100644 (file)
@@ -97,7 +97,6 @@ obj-$(CONFIG_GPIO_VR41XX)     += vr41xx_giu.o
 obj-$(CONFIG_GPIO_TB0219)      += tb0219.o
 obj-$(CONFIG_TELCLOCK)         += tlclk.o
 
-obj-$(CONFIG_WATCHDOG)         += watchdog/
 obj-$(CONFIG_MWAVE)            += mwave/
 obj-$(CONFIG_AGP)              += agp/
 obj-$(CONFIG_DRM)              += drm/