public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] PNP: adjust pnp_register_driver signature
@ 2006-03-02 23:01 Bjorn Helgaas
  2006-03-02 23:09 ` [PATCH 1/9] parport: " Bjorn Helgaas
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Bjorn Helgaas @ 2006-03-02 23:01 UTC (permalink / raw)
  To: Adam Belay
  Cc: linux-kernel, Jaroslav Kysela, Matthieu Castet, Li Shaohua,
	Andrew Morton

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-03-14  6:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 23:01 [PATCH 0/9] PNP: adjust pnp_register_driver signature Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 1/9] parport: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 2/9] mpu401: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 3/9] cs4236: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 4/9] opl3sa2: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 5/9] ns558: " Bjorn Helgaas
2006-03-03 12:55   ` Vojtech Pavlik
2006-03-03 15:58     ` Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 6/9] i8042: " Bjorn Helgaas
2006-03-14  5:31   ` Dmitry Torokhov
2006-03-02 23:09 ` [PATCH 7/9] IRDA: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 8/9] cs4232: " Bjorn Helgaas
2006-03-02 23:09 ` [PATCH 9/9] PNP: " Bjorn Helgaas
2006-03-14  6:19 ` [PATCH 0/9] " Adam Belay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox