]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock-rtc.c: try the 'new' rtc class first
authorJ William Piggott <elseifthen@gmx.com>
Mon, 13 Mar 2017 00:26:37 +0000 (20:26 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Thu, 23 Mar 2017 20:14:01 +0000 (16:14 -0400)
* 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>
sys-utils/hwclock-rtc.c
sys-utils/hwclock.8.in

index 411ec433a50e1568f2cad13f5893ebf11ded782b..077db73e799205100b46d6eca3571c25b2e99f8a 100644 (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;
index 78e53aeb1e9241f9c70b4c81b9db9c518a228b24..45ff73ff7bd6465adfc37e6aa2c0f60efa81e88d 100644 (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