hwclock-rtc.c: try the 'new' rtc class first

* sys-utils/hwclock-rtc.c: try to open the 'new' rtc class driver first.
* sys-utils/hwclock.8.in: document this.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
This commit is contained in:
J William Piggott 2017-03-12 20:26:37 -04:00
parent 24d746f705
commit 1811900a91
2 changed files with 5 additions and 5 deletions

View File

@ -110,8 +110,8 @@ static int open_rtc(const struct hwclock_control *ctl)
"/dev/efirtc",
"/dev/misc/efirtc",
#endif
"/dev/rtc",
"/dev/rtc0",
"/dev/rtc",
"/dev/misc/rtc"
};
size_t i;

View File

@ -337,10 +337,10 @@ default rtc device file name. Otherwise it will
use the first one found in this order:
.in +4
.br
.I /dev/rtc
.br
.I /dev/rtc0
.br
.I /dev/rtc
.br
.I /dev/misc/rtc
.br
.in
@ -1010,10 +1010,10 @@ Device files
.B hwclock
may try for Hardware Clock access:
.br
.I /dev/rtc
.br
.I /dev/rtc0
.br
.I /dev/rtc
.br
.I /dev/misc/rtc
.br
.I /dev/efirtc