kernel-ark/drivers
Bjorn Helgaas 33d8675ea6 [PATCH] amiga: fix driver_register() return handling, remove zorro_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.

zorro_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 zorro_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: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.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
..
acorn
acpi
amba
atm
base
block [PATCH] block/floppy: fix section mismatch warnings 2006-03-25 08:22:53 -08:00
bluetooth
cdrom [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
char [PATCH] parport: move PP_MAJOR from ppdev.h to major.h 2006-03-25 08:22:53 -08:00
connector
cpufreq
crypto
dio [PATCH] hp300: fix driver_register() return handling, remove dio_module_init() 2006-03-25 08:22:53 -08:00
edac
eisa [PATCH] EISA: tidy-up driver_register() return value 2006-03-25 08:22:53 -08:00
fc4
firmware
hwmon
i2c
ide [PATCH] ide: fix section mismatch warning 2006-03-25 08:22:53 -08:00
ieee1394
infiniband
input
isdn [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
macintosh
mca
md
media [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
message
mfd [PATCH] show MCP menu only on ARCH_SA1100 2006-03-24 07:33:28 -08:00
misc
mmc [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
mtd [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
net [PATCH] amiga: fix driver_register() return handling, remove zorro_module_init() 2006-03-25 08:22:53 -08:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
rapidio
s390 [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
sbus
scsi [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
serial [PATCH] hp300: fix driver_register() return handling, remove dio_module_init() 2006-03-25 08:22:53 -08:00
sh
sn
spi
tc
telephony
usb
video [PATCH] amiga: fix driver_register() return handling, remove zorro_module_init() 2006-03-25 08:22:53 -08:00
w1
zorro [PATCH] amiga: fix driver_register() return handling, remove zorro_module_init() 2006-03-25 08:22:53 -08:00
Kconfig
Makefile