Olof Johansson e5cce6c13c tpm: fix panic caused by "tpm: Autodetect itpm devices"
commit 3f0d3d016d89a5efb8b926d4707eb21fa13f3d27 adds a check for
PNP device id to the common tpm_tis_init() function, which in some
cases (force=1) will be called without the device being a member of
a pnp_dev. Oopsing and panics ensue.

Move the test up to before the call to tpm_tis_init(), since it
just modifies a global variable anyway.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
2011-01-24 11:29:55 +11:00
..
2010-10-15 15:53:27 +02:00
2010-08-10 13:47:40 -07:00
2008-07-20 17:12:36 -07:00
2010-08-10 13:47:40 -07:00
2011-01-20 17:02:14 -08:00
2008-02-07 08:42:25 -08:00
2010-10-15 15:53:27 +02:00
2008-04-30 08:29:43 -07:00
2010-10-15 15:53:27 +02:00
2011-01-13 08:03:23 -08:00
2010-12-17 15:18:05 +01:00
2010-08-10 13:47:40 -07:00
2008-07-20 17:12:38 -07:00
2009-02-22 09:23:02 -08:00
2011-01-10 08:51:44 -08:00
2008-07-20 17:12:38 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:02 -07:00