[arm/tegra] Check null pointer in suspend.c
authorTom Cherry <tcherry@nvidia.com>
Fri, 18 Feb 2011 19:59:16 +0000 (11:59 -0800)
committerVarun Colbert <vcolbert@nvidia.com>
Thu, 3 Mar 2011 18:37:23 +0000 (10:37 -0800)
commit29c5018516f0ed614d886b42d0b74787d89147fc
tree667bdb5d3d6abda13b24d1c09fc8ac5c8b211b5a
parent38d4a5a3e53ca4a9f821bb081062da616ee9ee79
[arm/tegra] Check null pointer in suspend.c

In tegra_suspend_enter, we need to check mask() and unmask() for null
before calling them, since there is no guarantee irq chips other than
tegra will implement these functions.

Change-Id: Ia6cb2c234983722bbe1202ec84eaceaf22a13450
Reviewed-on: http://git-master/r/20099
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arch/arm/mach-tegra/suspend.c