[PATCH] tpm: fix error handling
authorJeff Garzik <jeff@garzik.org>
Wed, 11 Oct 2006 08:21:51 +0000 (01:21 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 11 Oct 2006 18:14:22 +0000 (11:14 -0700)
commitf33d9bd50478c9a969b65f58feb6b69a3ad478cb
tree90f7455da171aa2b7558d5921f199015b5ab9a0b
parent5a2b4062f5adf2218b9b021e1c33f374bf142cb2
[PATCH] tpm: fix error handling

- handle sysfs error
- handle driver model errors
- de-obfuscate platform_device_register_simple() call, which included an
  assignment in between two function calls, in the same C statement.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Acked-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm_atmel.c
drivers/char/tpm/tpm_nsc.c