From 71718a6a227a2e490bd9d9ef1b72b162b18847e3 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 18 Nov 1999 05:44:56 +0000 Subject: [PATCH] Convert smb to use make_dev() rather than cdevsw_add(). This stops the annoying 'smb is usurping smb's cdevsw' type messages. (Yes, there are other ways to fix cdevsw_add(), but that is a doomed api) --- sys/dev/smbus/smb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c index d02b8a0d4ae6..c4bd042012e1 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); }