asoc: tegra: Protect against invalid gpio writes
authorScott Peterson <speterson@nvidia.com>
Sat, 9 Feb 2013 01:14:17 +0000 (17:14 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:00:46 +0000 (13:00 -0700)
commit98f755729a00f2b988fef3215451f3fd8d61d938
tree9267ec0f78cf0e1bcf448d6d634e636cbbed025c
parenta1fd952f2f286a0317bca3ecf675eadebd1823b7
asoc: tegra: Protect against invalid gpio writes

Protect against calling gpio_direction_output()
with an innvalid gpio handle.

Bug 1233665

Change-Id: I00dc7a2a254c7f57ba2894328abd52324bcb304d
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/198978
(cherry picked from commit ba43cb0c817dfbc2d51e8cda98330941e10876de)
Reviewed-on: http://git-master/r/204871
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Vijay Mali <vmali@nvidia.com>
sound/soc/tegra/tegra_rt5640.c