diff options
author | jhb <jhb@FreeBSD.org> | 2008-10-22 15:00:22 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-10-22 15:00:22 +0000 |
commit | c16b8be4793f74b96b99f111cd2dafdd854c0e9e (patch) | |
tree | 4e31270f57aac047d4234b11e1fc842ee781adde /sys/dev/ppbus/ppi.c | |
parent | f864c915d793f375a0376b4bd34c2a42dc90f58b (diff) | |
download | FreeBSD-src-c16b8be4793f74b96b99f111cd2dafdd854c0e9e.zip FreeBSD-src-c16b8be4793f74b96b99f111cd2dafdd854c0e9e.tar.gz |
Fix build breakage.
Pointy hat: jhb
Diffstat (limited to 'sys/dev/ppbus/ppi.c')
-rw-r--r-- | sys/dev/ppbus/ppi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c index e28b3cd..4c05667 100644 --- a/sys/dev/ppbus/ppi.c +++ b/sys/dev/ppbus/ppi.c @@ -171,7 +171,7 @@ ppi_attach(device_t dev) UID_ROOT, GID_WHEEL, 0600, "ppi%d", device_get_unit(dev)); if (ppi->ppi_cdev == NULL) { - device_printf("Failed to create character device\n"); + device_printf(dev, "Failed to create character device\n"); return (ENXIO); } ppi->ppi_cdev->si_drv1 = ppi; @@ -496,6 +496,7 @@ ppiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t { struct ppi_data *ppi = dev->si_drv1; device_t ppidev = ppi->ppi_device; + device_t ppbus = device_get_parent(ppidev); int error = 0; u_int8_t *val = (u_int8_t *)data; |