[PATCH] tpm_msc-build-fix

From: Greg KH
Date: Wed Mar 09 2005 - 21:00:03 EST


ChangeSet 1.2037, 2005/03/09 10:12:56-08:00, akpm@xxxxxxxx

[PATCH] tpm_msc-build-fix

With older gcc's:

drivers/char/tpm/tpm_nsc.c:238: unknown field `fops' specified in initializer
drivers/char/tpm/tpm_nsc.c:238: warning: missing braces around initializer


Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


drivers/char/tpm/tpm_nsc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/drivers/char/tpm/tpm_nsc.c b/drivers/char/tpm/tpm_nsc.c
--- a/drivers/char/tpm/tpm_nsc.c 2005-03-09 16:40:12 -08:00
+++ b/drivers/char/tpm/tpm_nsc.c 2005-03-09 16:40:12 -08:00
@@ -235,7 +235,8 @@
.req_complete_mask = NSC_STATUS_OBF,
.req_complete_val = NSC_STATUS_OBF,
.base = TPM_NSC_BASE,
- .miscdev.fops = &nsc_ops,
+ .miscdev = { .fops = &nsc_ops, },
+
};

static int __devinit tpm_nsc_init(struct pci_dev *pci_dev,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/