summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/smbus/smb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index d02b8a0..c4bd042 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -131,7 +131,9 @@ smb_probe(device_t dev)
static int
smb_attach(device_t dev)
{
- cdevsw_add(&smb_cdevsw);
+ make_dev(&smb_cdevsw, device_get_unit(dev), /* XXX cleanup */
+ UID_ROOT, GID_WHEEL,
+ 0600, "smb%d", device_get_unit(dev));
return (0);
}
OpenPOWER on IntegriCloud