if ((rc = tpm_register_hardware(pci_dev, &tpm_atmel)) < 0) 
if ((rc = tpm_register_hardware(&pci_dev->dev, &tpm_atmel)) < 0) 
static int __devinit tpm_atml_init(struct pci_dev *pci_dev,				   const struct pci_device_id *pci_id){	u8 version[4];	int rc = 0;	int lo, hi;	if (pci_enable_device(pci_dev))		return -EIO;	lo = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_LO);	hi = tpm_read_index(TPM_ADDR, TPM_ATMEL_BASE_ADDR_HI);	tpm_atmel.base = (hi<<8)|lo;	dev_dbg( &pci_dev->dev, "Operating with base: 0x%x\n", tpm_atmel.base);	/* verify that it is an Atmel part */	if (tpm_read_index(TPM_ADDR, 4) != 'A' || tpm_read_index(TPM_ADDR, 5) != 'T'	    || tpm_read_index(TPM_ADDR, 6) != 'M' || tpm_read_index(TPM_ADDR, 7) != 'L') {		rc = -ENODEV;		goto out_err;	}	/* query chip for its version number */	if ((version[0] = tpm_read_index(TPM_ADDR, 0x00)) != 0xFF) {		version[1] = tpm_read_index(TPM_ADDR, 0x01);		version[2] = tpm_read_index(TPM_ADDR, 0x02);		version[3] = tpm_read_index(TPM_ADDR, 0x03);	} else {		dev_info(&pci_dev->dev, "version query failed\n");		rc = -ENODEV;		goto out_err;	}	if ((rc = tpm_register_hardware(pci_dev, &tpm_atmel)) < 0)		goto out_err;	dev_info(&pci_dev->dev,		 "Atmel TPM version %d.%d.%d.%d\n", version[0], version[1],		 version[2], version[3]);	return 0;out_err:	pci_disable_device(pci_dev);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e659a3fe2027b19ecd8abb7ad79253672763454b/tpm_atmel.c/clean/drivers/char/tpm/tpm_atmel.c