tpm_nsc.c (0337966d121ebebf73a1c346123e8112796e684e) | tpm_nsc.c (f5595f5baa30e009bf54d0d7653a9a0cc465be60) |
---|---|
1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Dave Safford <safford@watson.ibm.com> 7 * Reiner Sailer <sailer@watson.ibm.com> 8 * Kylene Hall <kjhall@us.ibm.com> --- 212 unchanged lines hidden (view full) --- 221 } 222 223 if (wait_for_stat(chip, NSC_STATUS_IBF, 0, &data) < 0) { 224 dev_err(&chip->dev, "IBF timeout\n"); 225 return -EIO; 226 } 227 outb(NSC_COMMAND_EOC, priv->base + NSC_COMMAND); 228 | 1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Dave Safford <safford@watson.ibm.com> 7 * Reiner Sailer <sailer@watson.ibm.com> 8 * Kylene Hall <kjhall@us.ibm.com> --- 212 unchanged lines hidden (view full) --- 221 } 222 223 if (wait_for_stat(chip, NSC_STATUS_IBF, 0, &data) < 0) { 224 dev_err(&chip->dev, "IBF timeout\n"); 225 return -EIO; 226 } 227 outb(NSC_COMMAND_EOC, priv->base + NSC_COMMAND); 228 |
229 return count; | 229 return 0; |
230} 231 232static void tpm_nsc_cancel(struct tpm_chip *chip) 233{ 234 struct tpm_nsc_priv *priv = dev_get_drvdata(&chip->dev); 235 236 outb(NSC_COMMAND_CANCEL, priv->base + NSC_COMMAND); 237} --- 184 unchanged lines hidden --- | 230} 231 232static void tpm_nsc_cancel(struct tpm_chip *chip) 233{ 234 struct tpm_nsc_priv *priv = dev_get_drvdata(&chip->dev); 235 236 outb(NSC_COMMAND_CANCEL, priv->base + NSC_COMMAND); 237} --- 184 unchanged lines hidden --- |