linux-stable-rt/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
8250.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
8250.h
8250_accent.c
8250_acorn.c
8250_acpi.c
8250_au1x00.c [SERIAL] Fix compile error in 8250_au1x00.c 2006-02-08 21:36:28 +00:00
8250_boca.c
8250_early.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
8250_fourport.c
8250_gsc.c
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
8250_mca.c
8250_pci.c [SERIAL] 8250_pci: add new PCI serial card support 2006-02-08 21:46:24 +00:00
8250_pnp.c
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
68360serial.c [PATCH] m68knommu: use tty_schedule_flip() in 68360serial.c 2006-02-07 16:16:54 -08:00
Kconfig [PATCH] serial: serial_txx9 driver update 2006-03-22 07:53:55 -08:00
Makefile [SPARC64]: Put sunhv.o earliest in the list of sparc serial drivers. 2006-03-20 01:13:37 -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
dz.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
dz.h
icom.c
icom.h
imx.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
ioc3_serial.c
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
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
m32r_sio_reg.h
mcfserial.c [PATCH] m68knommu: compile fixes for mcfserial.c 2006-02-07 16:16:53 -08:00
mcfserial.h
mpc52xx_uart.c [SERIAL] kernel console should send CRLF not LFCR 2006-03-20 20:00:09 +00:00
mpsc.c
mpsc.h
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
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
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
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
suncore.h
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
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
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