Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: m48t59 fix section mismatch warning

Change the name of this data to use a name (suffix) that is whitelisted
by MODPOST so that the section warning is fixed (not generated).

WARNING: vmlinux.o(.data+0x1b140): Section mismatch: reference to .init.text:m48t59_rtc_probe (between 'm48t59_rtc_platdrv' and 'm48t59_nvram_attr')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
12730926 f15cf515

+3 -3
+3 -3
drivers/rtc/rtc-m48t59.c
··· 464 464 return 0; 465 465 } 466 466 467 - static struct platform_driver m48t59_rtc_platdrv = { 467 + static struct platform_driver m48t59_rtc_driver = { 468 468 .driver = { 469 469 .name = "rtc-m48t59", 470 470 .owner = THIS_MODULE, ··· 475 475 476 476 static int __init m48t59_rtc_init(void) 477 477 { 478 - return platform_driver_register(&m48t59_rtc_platdrv); 478 + return platform_driver_register(&m48t59_rtc_driver); 479 479 } 480 480 481 481 static void __exit m48t59_rtc_exit(void) 482 482 { 483 - platform_driver_unregister(&m48t59_rtc_platdrv); 483 + platform_driver_unregister(&m48t59_rtc_driver); 484 484 } 485 485 486 486 module_init(m48t59_rtc_init);