tpm: drop 'base' from struct tpm_vendor_specific

Dropped the field 'base' from struct tpm_vendor_specific and migrated
it to the private structures of tpm_atmel and tpm_nsc.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
This commit is contained in:
Jarkko Sakkinen
2016-03-23 08:16:09 +02:00
parent d4956524f1
commit ee1779840d
4 changed files with 52 additions and 25 deletions

View File

@@ -141,8 +141,7 @@ static void atml_plat_remove(void)
if (chip) {
tpm_chip_unregister(chip);
if (priv->have_region)
atmel_release_region(chip->vendor.base,
priv->region_size);
atmel_release_region(priv->base, priv->region_size);
atmel_put_base_addr(chip->vendor.iobase);
platform_device_unregister(pdev);
}
@@ -191,6 +190,7 @@ static int __init init_atmel(void)
goto err_unreg_dev;
}
priv->base = base;
priv->have_region = have_region;
priv->region_size = region_size;
@@ -201,7 +201,6 @@ static int __init init_atmel(void)
}
chip->vendor.iobase = iobase;
chip->vendor.base = base;
chip->vendor.priv = priv;
rc = tpm_chip_register(chip);