]> git.karo-electronics.de Git - linux-beck.git/commit
tpm2_i2c_nuvoton: add irq validity check
authorAndrew Zamansky <andrew.zamansky@nuvoton.com>
Wed, 29 Jun 2016 09:58:49 +0000 (12:58 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 19 Jul 2016 14:43:38 +0000 (17:43 +0300)
commitfa7539b27f4a9d0bfaede2f7547c2322ac68f1f2
tree6ade4b33f8f4b745a442c6813cda8784aae6ed1e
parent9754d45e997000ad4021bc4606cc266bb38d876f
tpm2_i2c_nuvoton: add irq validity check

In 570a3609 IRQ path is incorrectly always exercised while it should be
exercised only when there is an IRQ number allocated. This commit
reverts the old behavior.

[jarkko.sakkinen@linux.intel.com: updated description]

Fixes: 570a36097f3 ("tpm: drop 'irq' from struct tpm_vendor_specific")
Signed-off-by: Andrew Zamansky <andrew.zamansky@nuvoton.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_i2c_nuvoton.c