aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2013-09-07 13:45:44 +0000
committerDavide Italiano <davide@FreeBSD.org>2013-09-07 13:45:44 +0000
commitd56b4cd4acc825cf2a4d1150bb93dc75e6513dc8 (patch)
tree6e614255289b5312f626893bca4618a0e9379c04 /sys/dev/firewire
parent550ac4a8e884b3b45951fd4168cd4ebd6b4076d4 (diff)
Notes
Diffstat (limited to 'sys/dev/firewire')
-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;
}