Watchdog handlers within the driver make use of "save_client" -- make
sure it has been initalized before the handlers are registered.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
---
It should be obvious. Please apply.
Maciej
patch-2.6.26-rc1-20080505-m41t80-save_client-14
diff -up --recursive --new-file linux-2.6.26-rc1-20080505.macro/drivers/rtc/rtc-m41t80.c linux-2.6.26-rc1-20080505/drivers/rtc/rtc-m41t80.c
--- linux-2.6.26-rc1-20080505.macro/drivers/rtc/rtc-m41t80.c 2008-05-05 02:55:40.000000000 +0000
+++ linux-2.6.26-rc1-20080505/drivers/rtc/rtc-m41t80.c 2008-05-09 22:00:13.000000000 +0000
@@ -803,6 +803,7 @@ static int m41t80_probe(struct i2c_clien
#ifdef CONFIG_RTC_DRV_M41T80_WDT
if (clientdata->features & M41T80_FEATURE_HT) {
+ save_client = client;
rc = misc_register(&wdt_dev);
if (rc)
goto exit;
@@ -811,7 +812,6 @@ static int m41t80_probe(struct i2c_clien
misc_deregister(&wdt_dev);
goto exit;
}
- save_client = client;
}
#endif
return 0;
--
| Fred . | Please add ZFS support (from GPL sources) |
| Kristen Carlson Accardi | Re: PCIe Hotplug: NFG unless I boot with card already inserted. |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Linus Torvalds | Re: [GIT]: Networking |
git: | |
| Petr Baudis | Re: Cogito: cg-clone doesn't like packed tag objects |
| Andreas Ericsson | Re: [PATCH] git-merge: add option --no-ff |
| Junio C Hamano | GIT 0.99.6 |
| Wayne Scott | git-diff-tree rename detection bug |
| Unix Fan | Re: Vulnerability Note VU#800113 - Multiple DNS implementations vulnerable to cach... |
| Edd Barrett | Iwi, wireless bad behavior |
| jose thomas | Resume - Mumps Developer |
| Girish Venkatachalam | Ethernet jumbo frames? |
| Gregory McGarry | Re: Lock benchmarks |
| Perry E. Metzger | Re: HEADS UP: kqueue support merged |
| Frederick Bruckman | Re: POSIX timer_settime() dosn't set timer in some cases (lost accuracy) |
| jonathan | Re: Interrupt, interrupt threads, continuations, and kernel lwps |
