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

No differences found