[SCSI] gdth: fix Error: Driver 'gdth' is already registered, aborting...
commita85591fd0baf4ed3f03ee1aaac6a985e400cf089
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 5 May 2008 03:35:58 +0000 (4 22:35 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 8 May 2008 15:01:53 +0000 (8 10:01 -0500)
tree8634cb2134c8632ea969c9e11eac26cd56251e12
parent2d6f0d0cd94f9b8b24102300d8dd9cbbd1688826
[SCSI] gdth: fix Error: Driver 'gdth' is already registered, aborting...

This message appears on modprobe/rmmod/modprobe of the driver.  It's
caused because if the driver has no instances, it returns an error
from gdth_init, which causes the module to fail to load.
Unfortunately, the module's pci driver is still registered at this
point.

Fix this by making gdth behave like a modern driver and insert even if
it doesn't find any instances (in case of hot plug or software driven
binding).

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/gdth.c