aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire/fwdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/firewire/fwdev.c')
-rw-r--r--sys/dev/firewire/fwdev.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c
index 1475d00e3c38..d26810d30545 100644
--- a/sys/dev/firewire/fwdev.c
+++ b/sys/dev/firewire/fwdev.c
@@ -992,11 +992,9 @@ found:
sc = devclass_get_softc(firewire_devclass, unit);
if (sc == NULL)
return;
- *dev = make_dev(&firewire_cdevsw, MAKEMINOR(devflag[i], unit, sub),
- UID_ROOT, GID_OPERATOR, 0660,
- "%s%d.%d", devnames[i], unit, sub);
- dev_ref(*dev);
- (*dev)->si_flags |= SI_CHEAPCLONE;
+ *dev = make_dev_credf(MAKEDEV_REF, &firewire_cdevsw,
+ MAKEMINOR(devflag[i], unit, sub), cred, UID_ROOT, GID_OPERATOR,
+ 0660, "%s%d.%d", devnames[i], unit, sub);
dev_depends(sc->dev, *dev);
return;
}