TPM compile fix
Subsystems (2)
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.odrivers/char/tpm/tpm_nsc.c:277: error: `platform_bus_type' undeclared here (not in a function)
...
CC drivers/char/tpm/tpm_atmel.odrivers/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 */
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.odrivers/char/tpm/tpm_nsc.c:277: error: `platform_bus_type' undeclared here (not in a function)
...
CCdrivers/char/tpm/tpm_atmel.odrivers/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 <[email protected]>---
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 */