WSL2-Linux-Kernel/drivers/zorro
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
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gen-devlist.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
names.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc.c [PATCH] m68k: zorro __user annotations 2006-01-12 09:09:04 -08:00
zorro-driver.c [PATCH] amiga: fix driver_register() return handling, remove zorro_module_init() 2006-03-25 08:22:53 -08:00
zorro-sysfs.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
zorro.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
zorro.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zorro.ids Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00