Skip to contentSkip to conversation

rtc-s3c: Fix section mismatch warnings

PATCH In review Yauhen Kharuzhy 2 participants 5 messages Oct 16, 2008 – Oct 21, 2008 Real time clock (RTC)

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · On Thu, 16 Oct 2008 18:01:41 +0300 Yauhen Kharuzhy <[email protected]> wrote:

Warnings was appeared when compile rtc-s3c.c because platform_driver structure s3c2410_rtcdrv has wrong name.

-ENOPATCH :)

Signature · 6 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it
#2 lore raw

PATCH 1/1 rtc-s3c: Fix section mismatch warnings

Warnings was appeared when compile rtc-s3c.c because platform_driver structure s3c2410_rtcdrv has wrong name.

---
 drivers/rtc/rtc-s3c.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/rtc/rtc-s3c.c +3 -3
index e7d19b6..9a92ee1 100644
@@ -507,7 +507,7 @@ static int s3c_rtc_resume(struct platform_device *pdev)
 #define s3c_rtc_resume  NULL
 #endif
 
-static struct platform_driver s3c2410_rtcdrv = {
+static struct platform_driver s3c2410_rtc_driver = {
 	.probe		= s3c_rtc_probe,
 	.remove		= __devexit_p(s3c_rtc_remove),
 	.suspend	= s3c_rtc_suspend,
@@ -523,12 +523,12 @@ static char __initdata banner[] = "S3C24XX RTC, (c) 2004,2006 Simtec Electronics
 static int __init s3c_rtc_init(void)
 {
 	printk(banner);
-	return platform_driver_register(&s3c2410_rtcdrv);
+	return platform_driver_register(&s3c2410_rtc_driver);
 }
 
 static void __exit s3c_rtc_exit(void)
 {
-	platform_driver_unregister(&s3c2410_rtcdrv);
+	platform_driver_unregister(&s3c2410_rtc_driver);
 }
 
 module_init(s3c_rtc_init);
Signature · 1 line
1.5.6.5
Acked-by on v1 1/1
#4 lore raw
In reply to Yauhen Kharuzhy
Quoted 4 lines · On Thu, 16 Oct 2008 18:48:30 +0300 Yauhen Kharuzhy <[email protected]> wrote:

Warnings was appeared when compile rtc-s3c.c because platform_driver structure s3c2410_rtcdrv has wrong name.

Signature · 6 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it