[SCSI] gdth: fix timer handling
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 5 May 2008 03:34:49 +0000 (22:34 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 8 May 2008 15:01:39 +0000 (10:01 -0500)
commit2d6f0d0cd94f9b8b24102300d8dd9cbbd1688826
treee3149988098d59586e6170bbef7d9a140dfdb655
parent3de2403e6659d71b36ec820dc9b942762ddfe6eb
[SCSI] gdth: fix timer handling

The global timer handling is problematic in that if someone unbinds a
PCI gdth instance, the BUG_ON() in the timer will cause a panic.

Fix this by making the timer start and stop depending on whether there
are instances present.  This should also permit binding and unbinding
to work.

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