ARM: S3C24XX: serial: Fix section mismatch warnings
authorRamax Lo <ramaxlo@gmail.com>
Thu, 9 Jul 2009 08:28:33 +0000 (16:28 +0800)
committerBen Dooks <ben-linux@fluff.org>
Thu, 30 Jul 2009 22:56:41 +0000 (23:56 +0100)
commit8fe70a5f7167e02bbc18086970f0e92a5e55b80d
tree521744800e5be472bc43695a7a52df7ac0e752b2
parent165f5f64199f972a21f21effc125d89ed2488e58
ARM: S3C24XX: serial: Fix section mismatch warnings

During kernel build process, the following warning was found:

WARNING: drivers/serial/built-in.o(.data+0x304): Section mismatch in reference from
the variable s3c2440_serial_drv to the function .devexit.text:s3c24xx_serial_remove()
The variable s3c2440_serial_drv references the function __devexit s3c24xx_serial_remove()
If the reference is valid then annotate the variable with
__exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

The same warning happened for s3c241x platform. We rename variables to avoid
these warnings. These changes also apply to s3c2400 & s3c24a0 for consistency.

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/serial/s3c2400.c
drivers/serial/s3c2410.c
drivers/serial/s3c2412.c
drivers/serial/s3c2440.c
drivers/serial/s3c24a0.c