WARNING: vmlinux.o(.data+0x25d08): Section mismatch in reference from the
variable vrtc_mrst_platform_driver to the function
.init.text:vrtc_mrst_platform_probe()

The variable vrtc_mrst_platform_driver references
the function __init vrtc_mrst_platform_probe()

Signed-off-by: Ameya Palande <[email protected]>
---
 drivers/rtc/rtc-mrst.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c
index b86bc32..57a11be 100644
--- a/drivers/rtc/rtc-mrst.c
+++ b/drivers/rtc/rtc-mrst.c
@@ -524,7 +524,6 @@ static void vrtc_mrst_platform_shutdown(struct 
platform_device *pdev)
 MODULE_ALIAS("platform:vrtc_mrst");
 
 static struct platform_driver vrtc_mrst_platform_driver = {
-       .probe          = vrtc_mrst_platform_probe,
        .remove         = __exit_p(vrtc_mrst_platform_remove),
        .shutdown       = vrtc_mrst_platform_shutdown,
        .driver = {
@@ -536,7 +535,8 @@ static struct platform_driver vrtc_mrst_platform_driver = {
 
 static int __init vrtc_mrst_init(void)
 {
-       return platform_driver_register(&vrtc_mrst_platform_driver);
+       return platform_driver_probe(&vrtc_mrst_platform_driver,
+                       vrtc_mrst_platform_probe);
 }
 
 static void __exit vrtc_mrst_exit(void)
-- 
1.7.1

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to