2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/sound
Bjorn Helgaas f301ae6a69 [PATCH] pnp: mpu401: adjust pnp_register_driver signature
This series of patches removes the assumption that pnp_register_driver()
returns the number of devices claimed.  Returning the count is unreliable
because devices may be hot-plugged in the future.  (Many devices don't support
hot-plug, of course, but PNP in general does.)

This changes the convention to "zero for success, or a negative error value,"
which matches pci_register_driver(), acpi_bus_register_driver(), and
platform_driver_register().

If drivers need to know the number of devices, they can count calls to their
.probe() methods.

This patch:

Remove the assumption that pnp_register_driver() returns the number of devices
claimed.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-27 08:44:53 -08:00
..
arm [ALSA] semaphore -> mutex (Archs, misc buses) 2006-03-22 10:25:43 +01:00
core [ALSA] Fix memory leaks in error path of control.c 2006-03-22 10:43:56 +01:00
drivers [PATCH] pnp: mpu401: adjust pnp_register_driver signature 2006-03-27 08:44:53 -08:00
i2c [ALSA] ice1712 & cs8427 - fix problem for S/PDIF input setup 2006-03-22 10:28:15 +01:00
isa [ALSA] Fix gus_pcm dereference before NULL 2006-03-22 10:39:25 +01:00
mips [ALSA] AMD Au1x00: AC'97 controller is memory mapped 2006-03-22 10:43:28 +01:00
oss [PATCH] oss/sonicvibes.c defines its own hweight32 2006-03-26 08:57:09 -08:00
parisc [ALSA] Remove xxx_t typedefs: PARISC Harmony 2006-01-03 12:20:09 +01:00
pci [PATCH] Intruduce DMA_28BIT_MASK 2006-03-22 10:53:19 +01:00
pcmcia [ALSA] Don't NULL check vfree argument in pdaudiocf_pcm.c 2006-03-22 10:31:45 +01:00
ppc [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
sparc BUG_ON() Conversion in sound/sparc/cs4231.c 2006-03-24 18:49:12 +01:00
synth [ALSA] semaphore -> mutex (driver part) 2006-03-22 10:24:57 +01:00
usb [ALSA] fix resource leak in usbmixer 2006-03-22 10:39:28 +01:00
Kconfig [ALSA] sound: align device drivers menus 2006-01-03 12:29:56 +01:00
last.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sound_core.c [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
sound_firmware.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00