From: Uwe Kleine-König Date: Wed, 17 Sep 2008 21:11:28 +0000 (+0200) Subject: Fix sections for omap-mcbsp platform driver X-Git-Tag: v2.6.27-omap1~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0808a4029d13969e0ade3979c628b70130ae15fe;p=pandora-kernel.git Fix sections for omap-mcbsp platform driver Don't use __init but __devinit to define probe function. A pointer to omap_mcbsp_probe is passed to the core via platform_driver_register and so the function must not disappear when the init code is freed. Using __init and having HOTPLUG=y the following probably oopses: echo -n omap-mcbsp.1 > /sys/bus/platform/driver/omap-mcbsp/unbind echo -n omap-mcbsp.1 > /sys/bus/platform/driver/omap-mcbsp/bind While at it move the remove function to the .devexit.text section. Signed-off-by: Uwe Kleine-König Cc: Russell King Cc: Tony Lindgren Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed