linux/drivers/serial
Bjorn Helgaas e51c01b084 [PATCH] hp300: fix driver_register() return handling, remove dio_module_init()
Remove the assumption that driver_register() returns the number of devices
bound to the driver.  In fact, it returns zero for success or a negative
error value.

dio_module_init() used the device count to automatically unregister and
unload drivers that found no devices.  That might have worked at one time,
but has been broken for some time because dio_register_driver() returned
either a negative error or a positive count (never zero).  So it could only
unregister on failure, when it's not needed anyway.

This functionality could be resurrected in individual drivers by counting
devices in their .probe() methods.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Philip Blundell <philb@gnu.org>
Cc: Jochen Friedrich <jochen@scram.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-25 08:22:53 -08:00
..
cpm_uart [SERIAL] PPC32 CPM_UART: update to utilize the new TTY flip API 2006-02-08 21:40:13 +00:00
jsm [PATCH] drivers/serial/jsm/: cleanups 2006-02-03 08:32:08 -08:00
8250_accent.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_acorn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_acpi.c [ACPI] ACPICA 20050930 2005-12-10 00:20:25 -05:00
8250_au1x00.c [SERIAL] Fix compile error in 8250_au1x00.c 2006-02-08 21:36:28 +00:00
8250_boca.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_early.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
8250_fourport.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_gsc.c [PARISC] Fix mux.c driver 2005-10-21 22:58:03 -04:00
8250_hp300.c [PATCH] hp300: fix driver_register() return handling, remove dio_module_init() 2006-03-25 08:22:53 -08:00
8250_hub6.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_mca.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_pci.c [SERIAL] 8250_pci: add new PCI serial card support 2006-02-08 21:46:24 +00:00
8250_pnp.c [SERIAL] Claim Wacom tablet device on HP tc1100 tablet 2005-11-12 22:06:31 +00:00
8250.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
8250.h [SERIAL] Remove _INLINE_ 2006-01-04 19:43:24 +00:00
21285.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
68328serial.c [PATCH] kill _INLINE_ 2006-03-23 07:38:16 -08:00
68328serial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
68360serial.c [PATCH] m68knommu: use tty_schedule_flip() in 68360serial.c 2006-02-07 16:16:54 -08:00
amba-pl010.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
amba-pl011.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
at91_serial.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
au1x00_uart.c [PATCH] kill _INLINE_ 2006-03-23 07:38:16 -08:00
clps711x.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
crisv10.c [PATCH] kill _INLINE_ 2006-03-23 07:38:16 -08:00
crisv10.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dz.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
dz.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
icom.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
icom.h [PATCH] serial/icom: Remove custom msescs_to_jiffies() macro 2005-06-25 16:25:01 -07:00
imx.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
ioc3_serial.c [PATCH] Altix: ioc3 serial support 2006-01-14 18:25:20 -08:00
ioc4_serial.c [PATCH] Altix: small ioc4 oversight 2006-03-11 09:19:34 -08:00
ip22zilog.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
ip22zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] serial: serial_txx9 driver update 2006-03-22 07:53:55 -08:00
m32r_sio_reg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m32r_sio.c [PATCH] kill _INLINE_ 2006-03-23 07:38:16 -08:00
m32r_sio.h [PATCH] m32r_sio iomem annotations 2006-02-08 01:05:47 -05:00
Makefile [SPARC64]: Put sunhv.o earliest in the list of sparc serial drivers. 2006-03-20 01:13:37 -08:00
mcfserial.c [PATCH] m68knommu: compile fixes for mcfserial.c 2006-02-07 16:16:53 -08:00
mcfserial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpc52xx_uart.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
mpsc.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
mpsc.h [PATCH] ppc annotations: mpsc 2005-04-25 18:32:12 -07:00
mux.c [SERIAL] uart_port iotype member should use UPIO_* 2006-02-05 10:48:10 +00:00
pmac_zilog.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
pmac_zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pxa.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
s3c2410.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-22 17:33:12 -08:00
sa1100.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
serial_core.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
serial_cs.c [PATCH] pcmcia: add new IDs for serial_cs.c 2006-01-12 18:48:15 +01:00
serial_lh7a40x.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
serial_txx9.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-22 17:33:12 -08:00
sh-sci.c [SERIAL] uart_port flags member should use UPF_* 2006-02-05 10:52:29 +00:00
sh-sci.h [PATCH] sh: sh-sci clock framework updates 2006-02-01 08:53:20 -08:00
sn_console.c [IA64] SGI SN drivers: don't report !sn2 hardware as an error 2006-03-07 15:27:59 -08:00
suncore.c [SPARC64]: Serial Console for E250 Patch 2006-01-18 14:54:31 -08:00
suncore.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunhv.c [SPARC] serial: Make sure sysfs nodes get named correctly. 2006-03-20 01:13:47 -08:00
sunsab.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-22 17:33:12 -08:00
sunsab.h [SUNSAB]: Defer register updates until transmitter is idle. 2005-05-11 11:34:32 -07:00
sunsu.c [PATCH] kill _INLINE_ 2006-03-23 07:38:16 -08:00
sunzilog.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-22 17:33:12 -08:00
sunzilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v850e_uart.c [SERIAL] uart_port iotype member should use UPIO_* 2006-02-05 10:48:10 +00:00
vr41xx_siu.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-03-22 17:33:12 -08:00