Skip to contentSkip to conversation

TPM compile fix

PATCH In review Chris Wright 2 participants 2 messages Oct 31, 2005 – Nov 1, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TPM compile fix

Current tree doesn't build (at least on x86_64) due to TPM breakage:

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.

---

drivers/char/tpm/tpm_atmel.c +1 -0
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* Atmel definitions */
drivers/char/tpm/tpm_nsc.c +1 -0
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* National definitions */
Acked-by on v1 1/1
#1 lore raw
Quoted 36 lines · Chris Wright

Current tree doesn't build (at least on x86_64) due to TPM breakage:

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.

---

drivers/char/tpm/tpm_atmel.c +1 -0
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* Atmel definitions */
drivers/char/tpm/tpm_nsc.c +1 -0
@@ -19,6 +19,7 @@
  * 
  */
 
+#include <linux/platform_device.h>
 #include "tpm.h"
 
 /* National definitions */