]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: efi: Fail probing if RTC reads don't work
authorAlexander Graf <agraf@suse.de>
Sun, 5 Jun 2016 09:35:56 +0000 (11:35 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 6 Jun 2016 15:07:33 +0000 (17:07 +0200)
commit53be3d49c66d7b6fa383d7de60cc23c9e79e3d49
tree4ff05dc68c6c84fc66b02854d9ac12ea6ccd852c
parentfe6d14b70aff8716acb29ca76801ceb5290e4379
rtc: efi: Fail probing if RTC reads don't work

While the EFI spec mandates an RTC, not every implementation actually adheres
to that rule (or can adhere to it - some systems just don't have an RTC).

For those, we really don't want to probe the EFI RTC driver at all, because if
we do we'd get a non-functional driver that does nothing useful but only spills
our kernel log with warnings.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-efi.c