blob: 06173d2e316fa6efa1c6286a4e25ef9a95c103ef [file] [log] [blame]
Leendert van Doorn27084ef2006-04-22 02:38:03 -07001/*
2 * Copyright (C) 2005, 2006 IBM Corporation
Jarkko Sakkinen399235d2015-09-29 00:32:19 +03003 * Copyright (C) 2014, 2015 Intel Corporation
Leendert van Doorn27084ef2006-04-22 02:38:03 -07004 *
5 * Authors:
6 * Leendert van Doorn <leendert@watson.ibm.com>
7 * Kylene Hall <kjhall@us.ibm.com>
8 *
Kent Yoder8e81cc12007-08-22 14:01:04 -07009 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
10 *
Leendert van Doorn27084ef2006-04-22 02:38:03 -070011 * Device driver for TCG/TCPA TPM (trusted platform module).
12 * Specifications at www.trustedcomputinggroup.org
13 *
14 * This device driver implements the TPM interface as defined in
15 * the TCG TPM Interface Spec version 1.2, revision 1.0.
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation, version 2 of the
20 * License.
21 */
Kylene Jo Hall57135562006-04-22 02:39:44 -070022#include <linux/init.h>
23#include <linux/module.h>
24#include <linux/moduleparam.h>
Leendert van Doorn27084ef2006-04-22 02:38:03 -070025#include <linux/pnp.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090026#include <linux/slab.h>
Leendert van Doorn27084ef2006-04-22 02:38:03 -070027#include <linux/interrupt.h>
28#include <linux/wait.h>
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040029#include <linux/acpi.h>
Stefan Berger20b87bb2011-03-30 12:13:31 -040030#include <linux/freezer.h>
Leendert van Doorn27084ef2006-04-22 02:38:03 -070031#include "tpm.h"
Christophe Ricard57dacc22016-05-19 00:35:48 +020032#include "tpm_tis_core.h"
Leendert van Doorn27084ef2006-04-22 02:38:03 -070033
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030034struct tpm_info {
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -070035 struct resource res;
Jason Gunthorpeef7b81d2016-01-07 17:36:21 -070036 /* irq > 0 means: use irq $irq;
37 * irq = 0 means: autoprobe for an irq;
38 * irq = -1 means: no irq support
39 */
40 int irq;
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030041};
42
Christophe Ricard57dacc22016-05-19 00:35:48 +020043struct tpm_tis_tcg_phy {
44 struct tpm_tis_data priv;
Christophe Ricard4eea7032016-03-31 22:56:55 +020045 void __iomem *iobase;
Scot Doyle448e9c52014-09-24 22:41:10 +000046};
47
Christophe Ricard57dacc22016-05-19 00:35:48 +020048static inline struct tpm_tis_tcg_phy *to_tpm_tis_tcg_phy(struct tpm_tis_data *data)
49{
50 return container_of(data, struct tpm_tis_tcg_phy, priv);
51}
52
Christophe Ricard41a5e1c2016-05-19 00:35:52 +020053static bool interrupts = true;
54module_param(interrupts, bool, 0444);
55MODULE_PARM_DESC(interrupts, "Enable interrupts");
56
57static bool itpm;
58module_param(itpm, bool, 0444);
59MODULE_PARM_DESC(itpm, "Force iTPM workarounds (found on some Lenovo laptops)");
60
61static bool force;
62#ifdef CONFIG_X86
63module_param(force, bool, 0444);
64MODULE_PARM_DESC(force, "Force device probe rather than using ACPI entry");
65#endif
66
Randy Dunlap1560ffe62011-08-03 16:21:11 -070067#if defined(CONFIG_PNP) && defined(CONFIG_ACPI)
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030068static int has_hid(struct acpi_device *dev, const char *hid)
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040069{
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040070 struct acpi_hardware_id *id;
71
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030072 list_for_each_entry(id, &dev->pnp.ids, list)
73 if (!strcmp(hid, id->id))
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040074 return 1;
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040075
76 return 0;
77}
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030078
79static inline int is_itpm(struct acpi_device *dev)
80{
81 return has_hid(dev, "INTC0102");
82}
Randy Dunlap1560ffe62011-08-03 16:21:11 -070083#else
Jarkko Sakkinen399235d2015-09-29 00:32:19 +030084static inline int is_itpm(struct acpi_device *dev)
Randy Dunlap1560ffe62011-08-03 16:21:11 -070085{
86 return 0;
87}
Matthew Garrett3f0d3d02010-10-21 17:42:40 -040088#endif
89
Christophe Ricard1107d062016-05-19 00:35:49 +020090static int tpm_tcg_read_bytes(struct tpm_tis_data *data, u32 addr, u16 len,
91 u8 *result)
92{
93 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
94
95 while (len--)
96 *result++ = ioread8(phy->iobase + addr);
97 return 0;
98}
99
100static int tpm_tcg_write_bytes(struct tpm_tis_data *data, u32 addr, u16 len,
Arnd Bergmanne6b9e042017-09-07 15:30:45 +0200101 const u8 *value)
Christophe Ricard1107d062016-05-19 00:35:49 +0200102{
103 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
104
105 while (len--)
106 iowrite8(*value++, phy->iobase + addr);
107 return 0;
108}
109
110static int tpm_tcg_read16(struct tpm_tis_data *data, u32 addr, u16 *result)
111{
112 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
113
114 *result = ioread16(phy->iobase + addr);
115 return 0;
116}
117
118static int tpm_tcg_read32(struct tpm_tis_data *data, u32 addr, u32 *result)
119{
120 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
121
122 *result = ioread32(phy->iobase + addr);
123 return 0;
124}
125
126static int tpm_tcg_write32(struct tpm_tis_data *data, u32 addr, u32 value)
127{
128 struct tpm_tis_tcg_phy *phy = to_tpm_tis_tcg_phy(data);
129
130 iowrite32(value, phy->iobase + addr);
131 return 0;
132}
133
134static const struct tpm_tis_phy_ops tpm_tcg = {
135 .read_bytes = tpm_tcg_read_bytes,
136 .write_bytes = tpm_tcg_write_bytes,
137 .read16 = tpm_tcg_read16,
138 .read32 = tpm_tcg_read32,
139 .write32 = tpm_tcg_write32,
140};
141
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300142static int tpm_tis_init(struct device *dev, struct tpm_info *tpm_info,
143 acpi_handle acpi_dev_handle)
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700144{
Christophe Ricard57dacc22016-05-19 00:35:48 +0200145 struct tpm_tis_tcg_phy *phy;
Christophe Ricard41a5e1c2016-05-19 00:35:52 +0200146 int irq = -1;
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700147
Christophe Ricard57dacc22016-05-19 00:35:48 +0200148 phy = devm_kzalloc(dev, sizeof(struct tpm_tis_tcg_phy), GFP_KERNEL);
149 if (phy == NULL)
Scot Doyle448e9c52014-09-24 22:41:10 +0000150 return -ENOMEM;
Jarkko Sakkinenafb5abc2014-12-12 11:46:34 -0800151
Christophe Ricard57dacc22016-05-19 00:35:48 +0200152 phy->iobase = devm_ioremap_resource(dev, &tpm_info->res);
153 if (IS_ERR(phy->iobase))
154 return PTR_ERR(phy->iobase);
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700155
Christophe Ricard41a5e1c2016-05-19 00:35:52 +0200156 if (interrupts)
157 irq = tpm_info->irq;
Stefan Berger9519de32011-03-30 12:13:33 -0400158
Rajiv Andrade3507d612009-09-10 17:09:35 -0300159 if (itpm)
Christophe Ricard41a5e1c2016-05-19 00:35:52 +0200160 phy->priv.flags |= TPM_TIS_ITPM_POSSIBLE;
Rajiv Andrade3507d612009-09-10 17:09:35 -0300161
Christophe Ricard41a5e1c2016-05-19 00:35:52 +0200162 return tpm_tis_core_init(dev, &phy->priv, irq, &tpm_tcg,
163 acpi_dev_handle);
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700164}
Stefan Berger96854312011-07-17 01:04:24 -0400165
Shuah Khana2fa3fb2013-09-11 14:23:13 -0700166static SIMPLE_DEV_PM_OPS(tpm_tis_pm, tpm_pm_suspend, tpm_tis_resume);
167
Bill Pembertonafc6d362012-11-19 13:22:42 -0500168static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev,
Jason Gunthorpeef7b81d2016-01-07 17:36:21 -0700169 const struct pnp_device_id *pnp_id)
Kylene Jo Hall9e323d32006-07-14 00:24:31 -0700170{
Jason Gunthorpeef7b81d2016-01-07 17:36:21 -0700171 struct tpm_info tpm_info = {};
Jarkko Sakkinen0dc55362014-12-12 11:46:35 -0800172 acpi_handle acpi_dev_handle = NULL;
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -0700173 struct resource *res;
Bjorn Helgaas7917ff92007-10-16 23:26:46 -0700174
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -0700175 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0);
176 if (!res)
177 return -ENODEV;
178 tpm_info.res = *res;
Kylene Jo Hall9e323d32006-07-14 00:24:31 -0700179
Bjorn Helgaas7917ff92007-10-16 23:26:46 -0700180 if (pnp_irq_valid(pnp_dev, 0))
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300181 tpm_info.irq = pnp_irq(pnp_dev, 0);
Bjorn Helgaas7917ff92007-10-16 23:26:46 -0700182 else
Jason Gunthorpeef7b81d2016-01-07 17:36:21 -0700183 tpm_info.irq = -1;
Bjorn Helgaas7917ff92007-10-16 23:26:46 -0700184
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300185 if (pnp_acpi_device(pnp_dev)) {
186 if (is_itpm(pnp_acpi_device(pnp_dev)))
187 itpm = true;
188
Jason Gunthorpe00194822016-01-07 17:36:24 -0700189 acpi_dev_handle = ACPI_HANDLE(&pnp_dev->dev);
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300190 }
Jarkko Sakkinen0dc55362014-12-12 11:46:35 -0800191
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300192 return tpm_tis_init(&pnp_dev->dev, &tpm_info, acpi_dev_handle);
Kylene Jo Hall9e323d32006-07-14 00:24:31 -0700193}
194
Bill Pemberton0bbed202012-11-19 13:24:36 -0500195static struct pnp_device_id tpm_pnp_tbl[] = {
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700196 {"PNP0C31", 0}, /* TPM */
Kylene Jo Hall93e1b7d2006-04-22 02:39:52 -0700197 {"ATM1200", 0}, /* Atmel */
198 {"IFX0102", 0}, /* Infineon */
199 {"BCM0101", 0}, /* Broadcom */
LE DISEZ Erwan061991e2008-07-25 19:44:56 -0700200 {"BCM0102", 0}, /* Broadcom */
Kylene Jo Hall93e1b7d2006-04-22 02:39:52 -0700201 {"NSC1200", 0}, /* National */
Marcin Obarafb0e7e12008-07-10 17:30:42 -0700202 {"ICO0102", 0}, /* Intel */
Kylene Jo Hall93e1b7d2006-04-22 02:39:52 -0700203 /* Add new here */
204 {"", 0}, /* User Specified */
205 {"", 0} /* Terminator */
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700206};
Matt Domsch31bde712009-11-03 12:05:50 +1100207MODULE_DEVICE_TABLE(pnp, tpm_pnp_tbl);
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700208
Bill Pemberton39af33f2012-11-19 13:26:26 -0500209static void tpm_tis_pnp_remove(struct pnp_dev *dev)
Rajiv Andrade253115b2008-10-11 09:04:39 +1100210{
211 struct tpm_chip *chip = pnp_get_drvdata(dev);
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300212
Jarkko Sakkinenafb5abc2014-12-12 11:46:34 -0800213 tpm_chip_unregister(chip);
214 tpm_tis_remove(chip);
Rajiv Andrade253115b2008-10-11 09:04:39 +1100215}
216
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700217static struct pnp_driver tis_pnp_driver = {
218 .name = "tpm_tis",
219 .id_table = tpm_pnp_tbl,
220 .probe = tpm_tis_pnp_init,
Rajiv Andrade253115b2008-10-11 09:04:39 +1100221 .remove = tpm_tis_pnp_remove,
Shuah Khana2fa3fb2013-09-11 14:23:13 -0700222 .driver = {
223 .pm = &tpm_tis_pm,
224 },
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700225};
226
Kylene Jo Hall93e1b7d2006-04-22 02:39:52 -0700227#define TIS_HID_USR_IDX sizeof(tpm_pnp_tbl)/sizeof(struct pnp_device_id) -2
228module_param_string(hid, tpm_pnp_tbl[TIS_HID_USR_IDX].id,
229 sizeof(tpm_pnp_tbl[TIS_HID_USR_IDX].id), 0444);
230MODULE_PARM_DESC(hid, "Set additional specific HID for this driver to probe");
Ming Lei7a192ec2009-02-06 23:40:12 +0800231
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300232#ifdef CONFIG_ACPI
233static int tpm_check_resource(struct acpi_resource *ares, void *data)
234{
235 struct tpm_info *tpm_info = (struct tpm_info *) data;
236 struct resource res;
237
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -0700238 if (acpi_dev_resource_interrupt(ares, 0, &res))
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300239 tpm_info->irq = res.start;
Jarkko Sakkinen30f9c8c2016-02-17 02:10:52 +0200240 else if (acpi_dev_resource_memory(ares, &res)) {
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -0700241 tpm_info->res = res;
Jarkko Sakkinen30f9c8c2016-02-17 02:10:52 +0200242 tpm_info->res.name = NULL;
243 }
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300244
245 return 1;
246}
247
248static int tpm_tis_acpi_init(struct acpi_device *acpi_dev)
249{
Jason Gunthorpe4d627e62016-01-07 17:36:22 -0700250 struct acpi_table_tpm2 *tbl;
251 acpi_status st;
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300252 struct list_head resources;
Jason Gunthorpe4d627e62016-01-07 17:36:22 -0700253 struct tpm_info tpm_info = {};
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300254 int ret;
255
Jason Gunthorpe4d627e62016-01-07 17:36:22 -0700256 st = acpi_get_table(ACPI_SIG_TPM2, 1,
257 (struct acpi_table_header **) &tbl);
258 if (ACPI_FAILURE(st) || tbl->header.length < sizeof(*tbl)) {
259 dev_err(&acpi_dev->dev,
260 FW_BUG "failed to get TPM2 ACPI table\n");
261 return -EINVAL;
262 }
263
264 if (tbl->start_method != ACPI_TPM2_MEMORY_MAPPED)
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300265 return -ENODEV;
266
267 INIT_LIST_HEAD(&resources);
Jason Gunthorpeef7b81d2016-01-07 17:36:21 -0700268 tpm_info.irq = -1;
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300269 ret = acpi_dev_get_resources(acpi_dev, &resources, tpm_check_resource,
270 &tpm_info);
271 if (ret < 0)
272 return ret;
273
274 acpi_dev_free_resource_list(&resources);
275
Jason Gunthorpe51dd43d2016-01-07 17:36:23 -0700276 if (resource_type(&tpm_info.res) != IORESOURCE_MEM) {
Jason Gunthorpe4d627e62016-01-07 17:36:22 -0700277 dev_err(&acpi_dev->dev,
278 FW_BUG "TPM2 ACPI table does not define a memory resource\n");
279 return -EINVAL;
280 }
281
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300282 if (is_itpm(acpi_dev))
283 itpm = true;
284
285 return tpm_tis_init(&acpi_dev->dev, &tpm_info, acpi_dev->handle);
286}
287
288static int tpm_tis_acpi_remove(struct acpi_device *dev)
289{
290 struct tpm_chip *chip = dev_get_drvdata(&dev->dev);
291
292 tpm_chip_unregister(chip);
293 tpm_tis_remove(chip);
294
295 return 0;
296}
297
298static struct acpi_device_id tpm_acpi_tbl[] = {
299 {"MSFT0101", 0}, /* TPM 2.0 */
300 /* Add new here */
301 {"", 0}, /* User Specified */
302 {"", 0} /* Terminator */
303};
304MODULE_DEVICE_TABLE(acpi, tpm_acpi_tbl);
305
306static struct acpi_driver tis_acpi_driver = {
307 .name = "tpm_tis",
308 .ids = tpm_acpi_tbl,
309 .ops = {
310 .add = tpm_tis_acpi_init,
311 .remove = tpm_tis_acpi_remove,
312 },
313 .drv = {
314 .pm = &tpm_tis_pm,
315 },
316};
317#endif
318
Jason Gunthorpe00194822016-01-07 17:36:24 -0700319static struct platform_device *force_pdev;
320
321static int tpm_tis_plat_probe(struct platform_device *pdev)
322{
323 struct tpm_info tpm_info = {};
324 struct resource *res;
325
326 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
327 if (res == NULL) {
328 dev_err(&pdev->dev, "no memory resource defined\n");
329 return -ENODEV;
330 }
331 tpm_info.res = *res;
332
333 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
334 if (res) {
335 tpm_info.irq = res->start;
336 } else {
337 if (pdev == force_pdev)
338 tpm_info.irq = -1;
339 else
340 /* When forcing auto probe the IRQ */
341 tpm_info.irq = 0;
342 }
343
344 return tpm_tis_init(&pdev->dev, &tpm_info, NULL);
345}
346
347static int tpm_tis_plat_remove(struct platform_device *pdev)
348{
349 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev);
350
351 tpm_chip_unregister(chip);
352 tpm_tis_remove(chip);
353
354 return 0;
355}
356
Ming Lei7a192ec2009-02-06 23:40:12 +0800357static struct platform_driver tis_drv = {
Jason Gunthorpe00194822016-01-07 17:36:24 -0700358 .probe = tpm_tis_plat_probe,
359 .remove = tpm_tis_plat_remove,
Ming Lei7a192ec2009-02-06 23:40:12 +0800360 .driver = {
Jarkko Sakkinenafb5abc2014-12-12 11:46:34 -0800361 .name = "tpm_tis",
Rafael J. Wysockib633f052012-07-06 19:09:20 +0200362 .pm = &tpm_tis_pm,
Ming Lei7a192ec2009-02-06 23:40:12 +0800363 },
Kylene Jo Hall9e323d32006-07-14 00:24:31 -0700364};
365
Jason Gunthorpe00194822016-01-07 17:36:24 -0700366static int tpm_tis_force_device(void)
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700367{
Jason Gunthorpe00194822016-01-07 17:36:24 -0700368 struct platform_device *pdev;
369 static const struct resource x86_resources[] = {
370 {
371 .start = 0xFED40000,
372 .end = 0xFED40000 + TIS_MEM_LEN - 1,
373 .flags = IORESOURCE_MEM,
374 },
375 };
376
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300377 if (!force)
378 return 0;
Kylene Jo Hall9e323d32006-07-14 00:24:31 -0700379
Jason Gunthorpe00194822016-01-07 17:36:24 -0700380 /* The driver core will match the name tpm_tis of the device to
381 * the tpm_tis platform driver and complete the setup via
382 * tpm_tis_plat_probe
383 */
384 pdev = platform_device_register_simple("tpm_tis", -1, x86_resources,
385 ARRAY_SIZE(x86_resources));
386 if (IS_ERR(pdev))
387 return PTR_ERR(pdev);
388 force_pdev = pdev;
389
Wei Yongjun4fba3c32013-04-25 15:07:47 +0800390 return 0;
Jason Gunthorpe00194822016-01-07 17:36:24 -0700391}
392
393static int __init init_tis(void)
394{
395 int rc;
396
397 rc = tpm_tis_force_device();
398 if (rc)
399 goto err_force;
400
401 rc = platform_driver_register(&tis_drv);
402 if (rc)
403 goto err_platform;
404
405#ifdef CONFIG_ACPI
406 rc = acpi_bus_register_driver(&tis_acpi_driver);
407 if (rc)
408 goto err_acpi;
409#endif
410
411 if (IS_ENABLED(CONFIG_PNP)) {
412 rc = pnp_register_driver(&tis_pnp_driver);
413 if (rc)
414 goto err_pnp;
415 }
416
417 return 0;
418
419err_pnp:
420#ifdef CONFIG_ACPI
421 acpi_bus_unregister_driver(&tis_acpi_driver);
422err_acpi:
423#endif
Wei Yongjun84c26972017-02-07 15:51:47 +0000424 platform_driver_unregister(&tis_drv);
Jason Gunthorpe00194822016-01-07 17:36:24 -0700425err_platform:
426 if (force_pdev)
427 platform_device_unregister(force_pdev);
428err_force:
Rajiv Andrade7f2ab002010-05-13 17:37:54 -0300429 return rc;
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700430}
431
432static void __exit cleanup_tis(void)
433{
Jason Gunthorpe00194822016-01-07 17:36:24 -0700434 pnp_unregister_driver(&tis_pnp_driver);
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300435#ifdef CONFIG_ACPI
Jason Gunthorpe00194822016-01-07 17:36:24 -0700436 acpi_bus_unregister_driver(&tis_acpi_driver);
Jarkko Sakkinen399235d2015-09-29 00:32:19 +0300437#endif
Rajiv Andrade7f2ab002010-05-13 17:37:54 -0300438 platform_driver_unregister(&tis_drv);
Jason Gunthorpe00194822016-01-07 17:36:24 -0700439
440 if (force_pdev)
441 platform_device_unregister(force_pdev);
Leendert van Doorn27084ef2006-04-22 02:38:03 -0700442}
443
444module_init(init_tis);
445module_exit(cleanup_tis);
446MODULE_AUTHOR("Leendert van Doorn (leendert@watson.ibm.com)");
447MODULE_DESCRIPTION("TPM Driver");
448MODULE_VERSION("2.0");
449MODULE_LICENSE("GPL");