diff options
author | Kylene Jo Hall <kjhall@us.ibm.com> | 2005-10-30 18:03:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:28 -0500 |
commit | e659a3fe2027b19ecd8abb7ad79253672763454b (patch) | |
tree | c9759f75695a19742693c9719e92253e2cd52b7e /drivers/char/tpm/tpm.h | |
parent | b4ed3e3cbb312869929cf4528d71e52629a6cacb (diff) |
[PATCH] tpm: remove pci dependency
Since the tpm does not have it's own pci id we have been consuming the lpc
bus. This is not correct and causes problems to support non lpc bus chips.
This patch removes the dependency on pci_dev from tpm.c The subsequent patches
will stop the supported chips from registering as pci drivers.
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index ba70bf519fc9..27bc8ccb931a 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -61,7 +61,7 @@ struct tpm_vendor_specific { | |||
61 | }; | 61 | }; |
62 | 62 | ||
63 | struct tpm_chip { | 63 | struct tpm_chip { |
64 | struct pci_dev *pci_dev; /* PCI device stuff */ | 64 | struct device *dev; /* Device stuff */ |
65 | 65 | ||
66 | int dev_num; /* /dev/tpm# */ | 66 | int dev_num; /* /dev/tpm# */ |
67 | int num_opens; /* only one allowed */ | 67 | int num_opens; /* only one allowed */ |
@@ -92,13 +92,13 @@ static inline void tpm_write_index(int base, int index, int value) | |||
92 | outb(value & 0xFF, base+1); | 92 | outb(value & 0xFF, base+1); |
93 | } | 93 | } |
94 | 94 | ||
95 | extern int tpm_register_hardware(struct pci_dev *, | 95 | extern int tpm_register_hardware(struct device *, |
96 | struct tpm_vendor_specific *); | 96 | struct tpm_vendor_specific *); |
97 | extern int tpm_open(struct inode *, struct file *); | 97 | extern int tpm_open(struct inode *, struct file *); |
98 | extern int tpm_release(struct inode *, struct file *); | 98 | extern int tpm_release(struct inode *, struct file *); |
99 | extern ssize_t tpm_write(struct file *, const char __user *, size_t, | 99 | extern ssize_t tpm_write(struct file *, const char __user *, size_t, |
100 | loff_t *); | 100 | loff_t *); |
101 | extern ssize_t tpm_read(struct file *, char __user *, size_t, loff_t *); | 101 | extern ssize_t tpm_read(struct file *, char __user *, size_t, loff_t *); |
102 | extern void __devexit tpm_remove(struct pci_dev *); | 102 | extern void tpm_remove_hardware(struct device *); |
103 | extern int tpm_pm_suspend(struct pci_dev *, pm_message_t); | 103 | extern int tpm_pm_suspend(struct pci_dev *, pm_message_t); |
104 | extern int tpm_pm_resume(struct pci_dev *); | 104 | extern int tpm_pm_resume(struct pci_dev *); |