summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2010-07-22 10:30:49 +0800
committerRobby Cai <R63905@freescale.com>2010-07-22 10:30:49 +0800
commit37de712c356bc70d9f541cead3e101c8440af0ef (patch)
treece967d36e6547f21d9869f7996090dc880de2eb0
parent527d1a3f79e304e106d01edf2fe45d9e1761a78b (diff)
ENGR00125361-2 mx50 Fix section mismatch warning
Fix the following problem at compile-time. WARNING: vmlinux.o(.data+0x2b8b4): Section mismatch in reference from the variable pxp_device to the (unknown reference) .devinit.text:(unknown) The variable pxp_device references the (unknown reference) __devinit (unknown) If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--drivers/dma/pxp/pxp_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/pxp/pxp_device.c b/drivers/dma/pxp/pxp_device.c
index afd08ac6587c..0597a8e4380c 100644
--- a/drivers/dma/pxp/pxp_device.c
+++ b/drivers/dma/pxp/pxp_device.c
@@ -486,7 +486,7 @@ static int __devexit pxp_device_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_driver pxp_device = {
+static struct platform_driver pxp_client_driver = {
.probe = pxp_device_probe,
.remove = __exit_p(pxp_device_remove),
.driver = {
@@ -497,12 +497,12 @@ static struct platform_driver pxp_device = {
static int __init pxp_device_init(void)
{
- return platform_driver_register(&pxp_device);
+ return platform_driver_register(&pxp_client_driver);
}
static void __exit pxp_device_exit(void)
{
- platform_driver_unregister(&pxp_device);
+ platform_driver_unregister(&pxp_client_driver);
}
module_init(pxp_device_init);