[PORT FROM R2]pti: Check if pti is enabled in mipi header
authorJouni Hogander <jouni.hogander@intel.com>
Tue, 27 Mar 2012 10:36:32 +0000 (13:36 +0300)
committerbuildbot <buildbot@intel.com>
Tue, 24 Apr 2012 18:38:10 +0000 (11:38 -0700)
commit29baf44f0bb8d14636e58b400d9dc9a51d23c1fa
treedd02b4e3dbb53aab000793297584b0088bc46298
parent2e243ee015a3c01517c3dca221cb17c29cd31ae4
[PORT FROM R2]pti: Check if pti is enabled in mipi header

BZ: 28818

Check in init if pti is enabled in mipi header. In case of pti is
disabled return error to avoid further accesses on pti.

Change-Id: I587c12caa11619d49fe38e865e451821df502fa2
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/45916
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/misc/pti.c