All the drivers I looked at return 1 and don't call scsi_unregister(shpnt).
Inspecting the core code shows that
1. The return code is ignored (see I did test it worked 8))
2. scsi_unregister() is done by the core code for us
So I believe it simply needs a
return 1
on the end
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/