]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Fix sections for omap-mcbsp platform driver
authorUwe Kleine-König <ukleinek@strlen.de>
Wed, 17 Sep 2008 21:11:28 +0000 (23:11 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 24 Sep 2008 14:17:53 +0000 (17:17 +0300)
commit0808a4029d13969e0ade3979c628b70130ae15fe
treec2c8b7136a680d4db211c1f131f993f71cd6950a
parentc29cfcead32c8dcb9738a085d498aebe6ab160af
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 <ukleinek@strlen.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/mcbsp.c