diff options
author | peter <peter@FreeBSD.org> | 1999-11-08 07:37:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-08 07:37:15 +0000 |
commit | f0e609c8f7c1ece04a6046146adec45a3fb105ec (patch) | |
tree | 8ea8bf3e3e87f92c2235f00d0fffa7a7b36b9907 /sys/dev/smbus | |
parent | 6c85184e2d64ce56266c126966cbd32c547ae2f6 (diff) | |
download | FreeBSD-src-f0e609c8f7c1ece04a6046146adec45a3fb105ec.zip FreeBSD-src-f0e609c8f7c1ece04a6046146adec45a3fb105ec.tar.gz |
Use (temporarily) cdevsw_add() so we can change from DEV_DRIVER_MODULE()
to DRIVER_MODULE().
Diffstat (limited to 'sys/dev/smbus')
-rw-r--r-- | sys/dev/smbus/smb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c index 7bf1af6..d02b8a0 100644 --- a/sys/dev/smbus/smb.c +++ b/sys/dev/smbus/smb.c @@ -131,6 +131,7 @@ smb_probe(device_t dev) static int smb_attach(device_t dev) { + cdevsw_add(&smb_cdevsw); return (0); } @@ -267,4 +268,4 @@ smbioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) return (error); } -DEV_DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, smb_cdevsw, 0, 0); +DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0); |