Message ID | 4E12DEC8020000780004C1CE@nat28.tlf.novell.com |
---|---|
State | Superseded |
Headers | show |
On Tue, Jul 05, 2011 at 08:52:08AM +0100, Jan Beulich wrote: > With the use of platform_driver_probe(), pre-initializing the .probe > member of struct platform_driver is superfluous. As it causes a section > mismtach warning from modpost, the initializer should be removed. > > Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: dann frazier <dannf@dannf.org> > --- > drivers/rtc/rtc-efi.c | 1 - > 1 file changed, 1 deletion(-) > > --- 3.0-rc6/drivers/rtc/rtc-efi.c > +++ 3.0-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), > }; > > > >
--- 3.0-rc6/drivers/rtc/rtc-efi.c +++ 3.0-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), };
With the use of platform_driver_probe(), pre-initializing the .probe member of struct platform_driver is superfluous. As it causes a section mismtach warning from modpost, the initializer should be removed. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- drivers/rtc/rtc-efi.c | 1 - 1 file changed, 1 deletion(-)