efi: Register EFI rtc platform device only when available
authorArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2020 08:14:09 +0000 (09:14 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commite5c3b1cc99451d97ed3b94aff09817c66c040399
tree0e283eb68071bfcdb8f23f46cee9585126765707
parentbf67fad19e493bd3f7267b35b97b860280f87acc
efi: Register EFI rtc platform device only when available

Drop the separate driver that registers the EFI rtc on all EFI
systems that have runtime services available, and instead, move
the registration into the core EFI code, and make it conditional
on whether the actual time related services are available.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c
drivers/rtc/Makefile
drivers/rtc/rtc-efi-platform.c [deleted file]