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
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 <firstname.lastname@example.org>
Cc: Philip Blundell <email@example.com>
Cc: Jochen Friedrich <firstname.lastname@example.org>
Cc: "Antonino A. Daplas" <email@example.com>
Cc: Jeff Garzik <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>