From: Uwe Kleine-König Date: Wed, 8 Oct 2008 07:01:39 +0000 (+0300) Subject: Fix sections for omap-mcbsp platform driver X-Git-Tag: v2.6.28-rc1~293^2~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25cef2251415cef5438e20965fec87096fe2efb0;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 Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed