ALSA: msnd: Avoid duplicated driver name
authorTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 07:06:20 +0000 (08:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 07:06:20 +0000 (08:06 +0100)
commit092f9cd16aac7d054af1755c945f37c1b33399e6
tree6789c6cfac6bb082917f4205bbff967da884a458
parentc15b149a301ca214ef7ee92e2527b655ad007bb1
ALSA: msnd: Avoid duplicated driver name

msnd_pinnacle.c is used for both snd-msnd-pinnacle and
snd-msnd-classic drivers, and both should have different driver
names.  Using the same driver name results in the sysfs warning for
duplicated entries like
 kobject: 'msnd-pinnacle.7' (cec33408): kobject_release, parent   (null) (delayed)
 kobject: 'msnd-pinnacle' (cecd4980): kobject_release, parent cf3ad9b0 (delayed)
 ------------[ cut here ]------------
 WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:486 sysfs_warn_dup+0x7d/0xa0()
 sysfs: cannot create duplicate filename '/bus/isa/drivers/msnd-pinnacle'
 ......

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/msnd/msnd_pinnacle.c