mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Alessandro Zummo <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f15cf5151c
commit
1273092655
1 changed files with 3 additions and 3 deletions
|
|
@ -464,7 +464,7 @@ static int __devexit m48t59_rtc_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver m48t59_rtc_platdrv = {
|
||||
static struct platform_driver m48t59_rtc_driver = {
|
||||
.driver = {
|
||||
.name = "rtc-m48t59",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
@ -475,12 +475,12 @@ static struct platform_driver m48t59_rtc_platdrv = {
|
|||
|
||||
static int __init m48t59_rtc_init(void)
|
||||
{
|
||||
return platform_driver_register(&m48t59_rtc_platdrv);
|
||||
return platform_driver_register(&m48t59_rtc_driver);
|
||||
}
|
||||
|
||||
static void __exit m48t59_rtc_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&m48t59_rtc_platdrv);
|
||||
platform_driver_unregister(&m48t59_rtc_driver);
|
||||
}
|
||||
|
||||
module_init(m48t59_rtc_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue