Skip to content

PNP: adjust pnp_register_driver signature

Bjorn Helgaas linux-sound lkml 1 version Applied

Status from this message: Applied, thank you Bjorn.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9parport: adjust pnp_register_driver signaturedrivers/parport/parport_pc.c+11 -200 replies
2/9mpu401: adjust pnp_register_driver signaturesound/drivers/mpu401/mpu401.c+8 -80 replies
3/9cs4236: adjust pnp_register_driver signaturesound/isa/cs423x/cs4236.c+12 -130 replies
4/9opl3sa2: adjust pnp_register_driver signaturesound/isa/opl3sa2.c+8 -90 replies
5/9ns558: adjust pnp_register_driver signaturedrivers/input/gameport/ns558.c+3 -22 replies
6/9i8042: adjust pnp_register_driver signaturedrivers/input/serio/i8042-x86ia64io.h+16 -101 reply
7/9IRDA: adjust pnp_register_driver signaturedrivers/net/irda/nsc-ircc.c+1 -10 replies
8/9cs4232: adjust pnp_register_driver signaturesound/oss/cs4232.c+10 -50 replies
9/9PNP: adjust pnp_register_driver signatureDocumentation/pnp.txt drivers/pnp/card.c drivers/pnp/driver.c+11 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] PNP: 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.