From: Wim Van Sebroeck Date: Tue, 14 Apr 2009 20:30:55 +0000 (+0000) Subject: [WATCHDOG] move platform probe and remove function to devinit and devexit X-Git-Tag: v2.6.31-rc1~141^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6bf291f1c5bc84272a138b7367741e459005a81;p=pandora-kernel.git [WATCHDOG] move platform probe and remove function to devinit and devexit A pointer to probe and remove functions 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. Signed-off-by: Wim Van Sebroeck --- Reading git-diff-tree failed