sound: Use sound_register_*() for additional OSS minor devices
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Mar 2011 16:33:48 +0000 (17:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Mar 2011 19:10:37 +0000 (20:10 +0100)
commit848669da3a92fa6ab815e0517af3294afb3ea928
treeac00a24c870f08e069397c94d506ae263c0bd1c1
parenta2800300f28bd1814f3ba8cfd93ecb0b00c2dfe3
sound: Use sound_register_*() for additional OSS minor devices

Since OSS driver creates the device entries for /dev/audio* and
/dev/dspW* by itself without coping with sound_core, it leads to
conflicts with others and let sysfs spewing warnings.

This patch rewrites the registration part of OSS driver to use
the standard method also for additional minor devices.

Reported-by: Steven Rostedt <rostedt@goodmis.org> (with ktest.pl)
Tested-by: Steven Rostedt <rostedt@goodmis.org> (with ktest.pl)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/soundcard.c
sound/sound_core.c