dev_err(&chip->pci_dev->dev, 
dev_err(chip->dev, 
static int tpm_nsc_send(struct tpm_chip *chip, u8 * buf, size_t count){	u8 data;	int i;	/*	 * If we hit the chip with back to back commands it locks up	 * and never set IBF. Hitting it with this "hammer" seems to	 * fix it. Not sure why this is needed, we followed the flow	 * chart in the manual to the letter.	 */	outb(NSC_COMMAND_CANCEL, chip->vendor->base + NSC_COMMAND);	if (nsc_wait_for_ready(chip) != 0)		return -EIO;	if (wait_for_stat(chip, NSC_STATUS_IBF, 0, &data) < 0) {		dev_err(&chip->pci_dev->dev, "IBF timeout\n");		return -EIO;	}	outb(NSC_COMMAND_NORMAL, chip->vendor->base + NSC_COMMAND);	if (wait_for_stat(chip, NSC_STATUS_IBR, NSC_STATUS_IBR, &data) < 0) {		dev_err(&chip->pci_dev->dev, "IBR timeout\n");		return -EIO;	}	for (i = 0; i < count; i++) {		if (wait_for_stat(chip, NSC_STATUS_IBF, 0, &data) < 0) {			dev_err(&chip->pci_dev->dev,				"IBF timeout (while writing data)\n");			return -EIO;		}		outb(buf[i], chip->vendor->base + NSC_DATA);	}	if (wait_for_stat(chip, NSC_STATUS_IBF, 0, &data) < 0) {		dev_err(&chip->pci_dev->dev, "IBF timeout\n");		return -EIO;	}	outb(NSC_COMMAND_EOC, chip->vendor->base + NSC_COMMAND);	return count;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e659a3fe2027b19ecd8abb7ad79253672763454b/tpm_nsc.c/buggy/drivers/char/tpm/tpm_nsc.c