Skip to content
Commit a85591fd authored by James Bottomley's avatar James Bottomley
Browse files

[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: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 2d6f0d0c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment