linux/sound/ppc
Benjamin Herrenschmidt 41e904dee2 [POWERPC] Fix snd-powermac refcounting bugs
The old snd-powermac driver has some serious refcounting issues when
initialisation fails, which is the case on all new machines with
a layout-id since those are handled by the new snd-aoa driver.

Some of those bugs seem to have been under the radar for some time
(like double pci_dev_put), but one was actually added in 2.6.22 with
Stephen attempt at teaching refcounting to the driver which didn't
do it at all.

This patch fixes both, thus removing all sort of kref errors that
would happen if that driver gets loaded on a G5 machine or a recent
PowerBook due to OF nodes left around with a 0 refcount.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-06-19 14:54:56 +10:00
..
Kconfig [ALSA] powermac - Use platform_device 2006-01-03 12:28:44 +01:00
Makefile [ALSA] snd-powermac: no longer handle anything with a layout-id property 2006-06-22 21:34:39 +02:00
awacs.c [ALSA] Conversions from kmalloc+memset to k(z|c)alloc 2006-08-03 15:21:18 +02:00
awacs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
beep.c [ALSA] ppc-beep - handle errors from input_register_device() 2006-09-23 10:39:55 +02:00
burgundy.c [ALSA] Remove xxx_t typedefs: PowerMac 2006-01-03 12:20:00 +01:00
burgundy.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
daca.c [ALSA] Conversions from kmalloc+memset to k(z|c)alloc 2006-08-03 15:21:18 +02:00
keywest.c [ALSA] powermac - Fix Oops when conflicting with aoa driver 2006-09-23 10:47:15 +02:00
pmac.c [POWERPC] Fix snd-powermac refcounting bugs 2007-06-19 14:54:56 +10:00
pmac.h [ALSA] snd-powermac: no longer handle anything with a layout-id property 2006-06-22 21:34:39 +02:00
powermac.c [ALSA] make snd-powermac load even when it can't bind the device 2006-08-03 15:21:24 +02:00
tumbler.c [POWERPC] Rename device_is_compatible to of_device_is_compatible 2007-05-07 20:31:14 +10:00
tumbler_volume.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00