Skip to content

Commit

Permalink
drivers/rtc/rtc-efi.c: fix section mismatch warning
Browse files Browse the repository at this point in the history
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>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Apr 12, 2012
1 parent bb58da0 commit 3205001
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/rtc/rtc-efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ static struct platform_driver efi_rtc_driver = {
.name = "rtc-efi",
.owner = THIS_MODULE,
},
.probe = efi_rtc_probe,
.remove = __exit_p(efi_rtc_remove),
};

Expand Down

0 comments on commit 3205001

Please sign in to comment.