diff options
author | 2008-10-08 10:01:39 +0300 | |
---|---|---|
committer | 2008-10-08 10:01:39 +0300 | |
commit | 25cef2251415cef5438e20965fec87096fe2efb0 (patch) | |
tree | 8f3de286d8c8d4a57f2cc04b036bd3f3680bb026 /drivers/rtc | |
parent | Merge unstable branch 'omap-rmk' (diff) | |
download | linux-dev-25cef2251415cef5438e20965fec87096fe2efb0.tar.xz linux-dev-25cef2251415cef5438e20965fec87096fe2efb0.zip |
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions