]> err.no Git - linux-2.6/commitdiff
[PATCH] TPM compile fix
authorChris Wright <chrisw@osdl.org>
Tue, 1 Nov 2005 07:44:28 +0000 (23:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 2 Nov 2005 05:44:45 +0000 (21:44 -0800)
  CC      drivers/char/tpm/tpm_nsc.o
drivers/char/tpm/tpm_nsc.c:277: error: `platform_bus_type' undeclared here (not in a function)
...
  CC      drivers/char/tpm/tpm_atmel.o
drivers/char/tpm/tpm_atmel.c:175: error: `platform_bus_type' undeclared here (not in a function)

Make sure to include proper headers.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm_atmel.c
drivers/char/tpm/tpm_nsc.c

index 8cb42e84723c4381db5798ee817d866aa150d437..32e01450c4253bd4b5f9e3ddb1d3ce21d3f8752c 100644 (file)
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* Atmel definitions */
index 253871b5b1e223ac2035faf83d16bad594ffc5e9..8d125c974a2d4d7f92a0f5f4b9aa39b6d6f3bc45 100644 (file)
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* National definitions */