From: Nishanth Aravamudan Date: Fri, 24 Jun 2005 05:01:47 +0000 (-0700) Subject: [PATCH] char/tpm: use msleep(), clean-up timers, X-Git-Tag: v2.6.13-rc1~68^2~354 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=700d8bdcd0fa815b08638b1e4d43b66d60cc6a8d;p=pandora-kernel.git [PATCH] char/tpm: use msleep(), clean-up timers, The TPM driver unnecessarily uses timers when it simply needs to maintain a maximum delay via time_before(). msleep() is used instead of schedule_timeout() to guarantee the task delays as expected. While compile-testing, I found a typo in the driver, using tpm_chp instead of tpm_chip. Remove the now unused timer callback function and change TPM_TIMEOUT's units to milliseconds. Patch is compile-tested. Signed-off-by: Nishanth Aravamudan Acked-by: Kylene Hall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed