Uwe Kleine-König c98d58e00d [WATCHDOG] ks8695_wdt.c: move probe function to .devinit.text
A pointer to ks8695wdt_probe is passed to the core via
platform_driver_register and so the function must not disappear when the
.init sections are discarded.  Otherwise (if also having HOTPLUG=y)
unbinding and binding a device to the driver via sysfs will result in an
oops as does a device being registered late.

An alternative to this patch is using platform_driver_probe instead of
platform_driver_register plus removing the pointer to the probe function
from the struct platform_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Alan Cox <alan@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2009-04-08 06:13:07 +00:00
..
2009-04-07 08:31:03 -07:00
2009-04-05 02:14:15 -04:00
2009-04-06 16:06:27 +01:00
2009-04-06 14:40:07 -07:00
2009-04-05 00:32:25 +02:00
2009-04-01 08:59:23 -07:00
2009-04-02 00:40:41 +00:00
2009-04-05 02:14:15 -04:00
2009-04-07 08:44:06 -07:00
2009-04-02 11:19:57 +09:00
2009-04-05 00:32:22 +02:00