diff options
| author | Warner Losh <imp@FreeBSD.org> | 2005-03-10 22:21:16 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2005-03-10 22:21:16 +0000 |
| commit | 8dce0b0cf8c812a17a2e9c998a98018d84ca09cd (patch) | |
| tree | 68813fa6967eb4f783d9c3918377c90cbfc4ca32 /sys/dev | |
| parent | a00d9dc1de8de4eaab185317fd37f77d2469c8ee (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ppbus/pps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ppbus/pps.c b/sys/dev/ppbus/pps.c index bf7c08b41ece4..2582aa1a13b0e 100644 --- a/sys/dev/ppbus/pps.c +++ b/sys/dev/ppbus/pps.c @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #define PRVERBOSE(fmt, arg...) if (bootverbose) printf(fmt, ##arg); struct pps_data { - struct ppb_device pps_dev; + struct ppb_device pps_dev; struct pps_state pps[9]; struct cdev *devs[9]; device_t ppsdev; @@ -215,7 +215,7 @@ ppsopen(struct cdev *dev, int flags, int fmt, struct thread *td) i = IRQENABLE | PCD | nINIT | SELECTIN; ppb_wctr(ppbus, i); - } + } if (subdev > 0 && !(sc->busy & ~1)) { sc->timeout = timeout(ppshcpoll, sc, 1); sc->lastdata = ppb_rdtr(sc->ppbus); @@ -232,7 +232,7 @@ ppsclose(struct cdev *dev, int flags, int fmt, struct thread *td) sc->pps[subdev].ppsparam.mode = 0; /* PHK ??? */ sc->busy &= ~(1 << subdev); - if (subdev > 0 && !(sc->busy & ~1)) + if (subdev > 0 && !(sc->busy & ~1)) untimeout(ppshcpoll, sc, sc->timeout); if (!sc->busy) { device_t ppsdev = sc->ppsdev; |
