Patchwork rtc-efi: fix section mismatch warning

login
register
mail settings
Submitter Jan Beulich
Date March 8, 2012, 9:10 a.m.
Message ID <4F58857A02000078000770D4@nat28.tlf.novell.com>
Download mbox | patch
Permalink /patch/145470/
State New
Headers show

Comments

Jan Beulich - March 8, 2012, 9:10 a.m.
efi_rtc_init() uses platform_driver_probe(), so there's no need to also
set efi_rtc_driver's probe member (as it won't be used anyway). This
fixes a modpost section mismatch warning (as efi_rtc_probe() validly is
__init).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Matthew Garrett <mjg@redhat.com>

---
 drivers/rtc/rtc-efi.c |    1 -
 1 file changed, 1 deletion(-)

Patch

--- 3.3-rc6/drivers/rtc/rtc-efi.c
+++ 3.3-rc6-efi-rtc-probe/drivers/rtc/rtc-efi.c
@@ -213,7 +213,6 @@  static struct platform_driver efi_rtc_dr
 		.name = "rtc-efi",
 		.owner = THIS_MODULE,
 	},
-	.probe = efi_rtc_probe,
 	.remove = __exit_p(efi_rtc_remove),
 };