public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tpm: autoload tpm_tis based on system PnP IDs
@ 2009-10-20 18:58 Matt Domsch
  2009-10-20 20:45 ` Rajiv Andrade
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Domsch @ 2009-10-20 18:58 UTC (permalink / raw)
  To: Debora Velarde, Rajiv Andrade, Marcel Selhorst, tpmdd-devel
  Cc: linux-kernel, linux-bugs

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 <Matt_Domsch@dell.com>
---
 drivers/char/tpm/tpm_tis.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 0b73e4e..c10ab48 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -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)
 {
-- 
1.6.0.6


-- 
Matt Domsch
Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tpm: autoload tpm_tis based on system PnP IDs
  2009-10-20 18:58 [PATCH] tpm: autoload tpm_tis based on system PnP IDs Matt Domsch
@ 2009-10-20 20:45 ` Rajiv Andrade
  0 siblings, 0 replies; 2+ messages in thread
From: Rajiv Andrade @ 2009-10-20 20:45 UTC (permalink / raw)
  To: Matt Domsch
  Cc: Debora Velarde, Marcel Selhorst, tpmdd-devel, linux-kernel,
	linux-bugs, akpm

Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>

Matt Domsch wrote:
> 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 <Matt_Domsch@dell.com>
> ---
>  drivers/char/tpm/tpm_tis.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 0b73e4e..c10ab48 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -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)
>  {
>   


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-20 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 18:58 [PATCH] tpm: autoload tpm_tis based on system PnP IDs Matt Domsch
2009-10-20 20:45 ` Rajiv Andrade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox