tpm: autoload tpm_tis based on system PnP IDs
PATCH 1/1 tpm: autoload tpm_tis based on system PnP IDs
The tpm_tis driver already has a list of supported pnp_device_ids. This patch simply exports that list as a MODULE_DEVICE_TABLE() so that the module autoloader will discover and load the module at boottime.
Signed-off-by Matt Domsch <[email protected]>
--- drivers/char/tpm/tpm_tis.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/tpm/tpm_tis.c +1 -0
@@ -629,6 +629,7 @@ static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = { {"", 0}, /* User Specified */ {"", 0} /* Terminator */ }; +MODULE_DEVICE_TABLE (pnp, tpm_pnp_tbl); static __devexit void tpm_tis_pnp_remove(struct pnp_dev *dev) {
Signature · 7 lines
1.6.0.6 -- Matt Domsch Technology Strategist, Dell Office of the CTO linux.dell.com & www.dell.com/linux
Acked-by Rajiv Andrade <[email protected]>
Quoted 22 lines · Matt Domsch
The
tpm_tisdriver already has a list of supportedpnp_device_ids. This patch simply exports that list as aMODULE_DEVICE_TABLE()so that the module autoloader will discover and load the module at boottime.Signed-off-by Matt Domsch <[email protected]>--- drivers/char/tpm/tpm_tis.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/char/tpm/tpm_tis.c +1
-0@@ -629,6 +629,7 @@ static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = { {"", 0}, /* User Specified */ {"", 0} /* Terminator */ }; +MODULE_DEVICE_TABLE (pnp, tpm_pnp_tbl); static __devexit void tpm_tis_pnp_remove(struct pnp_dev *dev) {