diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-06-06 21:00:01 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-06-06 21:00:01 +0000 |
| commit | 77a7881dac2402d9b66807c2d987f0dc977adcfd (patch) | |
| tree | 6275c3af86843a4ba588adb482695f1469d65c06 /sys/dev/ppbus | |
| parent | fb478e5d0bc3a1f87dd1e937d7e8f6772959d5c8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus')
| -rw-r--r-- | sys/dev/ppbus/pcfclock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ppbus/pcfclock.c b/sys/dev/ppbus/pcfclock.c index 2db7f969cd612..c0e6275b8d7b6 100644 --- a/sys/dev/ppbus/pcfclock.c +++ b/sys/dev/ppbus/pcfclock.c @@ -13,7 +13,7 @@ * THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO - * EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF @@ -50,7 +50,6 @@ struct pcfclock_data { int count; - struct ppb_device pcfclock_dev; }; #define DEVTOSOFTC(dev) \ @@ -183,9 +182,8 @@ pcfclock_close(dev_t dev, int flags, int fmt, struct proc *p) device_t ppbus = device_get_parent(pcfclockdev); sc->count--; - if (sc->count == 0) { + if (sc->count == 0) ppb_release_bus(ppbus, pcfclockdev); - } return (0); } @@ -220,6 +218,7 @@ pcfclock_display_data(dev_t dev, char buf[18]) year = NR(buf, 14); if (year < 70) year += 100; + printf(PCFCLOCK_NAME "%d: %02d.%02d.%4d %02d:%02d:%02d, " "battery status: %s\n", unit, |
