Jarkko Sakkinen 19913b6db3 tpm: fix call order in tpm-chip.c
- tpm_dev_add_device(): cdev_add() must be done before uevent is
  propagated in order to avoid races.
- tpm_chip_register(): tpm_dev_add_device() must be done as the
  last step before exposing device to the user space in order to
  avoid races.

In addition clarified description in tpm_chip_register().

Fixes: 313d21eeab92 ("tpm: device class for tpm")
Fixes: afb5abc262e9 ("tpm: two-phase chip management functions")

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
2015-03-06 22:35:49 +01:00
..
2015-02-19 20:58:42 -06:00
2015-03-06 22:35:49 +01:00
2013-05-05 00:11:29 -04:00
2013-05-05 00:12:29 -04:00
2013-05-05 00:12:29 -04:00
2015-01-25 09:17:59 -08:00
2013-12-18 16:39:54 -08:00
2014-09-23 23:44:16 -07:00
2015-02-15 10:48:44 -08:00
2013-12-19 15:10:49 +01:00
2015-02-09 12:28:42 -08:00
2015-01-20 14:03:05 -07:00
2013-10-16 12:36:10 -07:00
2014-04-16 14:21:06 -07:00