freebsd-dev/sys/dev/sound
Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
..
isa Spelling fix for interupt -> interrupt 2007-10-12 06:03:46 +00:00
midi Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
pci Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
pcm Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
sbus Spelling fix for interupt -> interrupt 2007-10-12 06:03:46 +00:00
usb Handle the error case properly for device_get_children. 2008-08-23 18:22:49 +00:00
chip.h
clone.c - Add option to allow sleeping malloc(9). 2007-06-14 11:10:21 +00:00
clone.h - Add option to allow sleeping malloc(9). 2007-06-14 11:10:21 +00:00
driver.c s/WHETHERIN/WHETHER IN/ & s/THEPOSSIBILITY/THE POSSIBILITY/ in the 2007-01-31 08:53:45 +00:00
unit.c Last major commit and updates for RELENG_7: 2007-05-31 18:35:24 +00:00
unit.h Last major commit and updates for RELENG_7: 2007-05-31 18:35:24 +00:00
version.h Last (again ?!?) major commit for RELENG_7, featuring total Giant 2007-06-16 03:37:28 +00:00