asoc: tegra: Protect against invalid gpio writes
authorScott Peterson <speterson@nvidia.com>
Sat, 9 Feb 2013 01:14:17 +0000 (17:14 -0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Tue, 19 Feb 2013 16:39:42 +0000 (08:39 -0800)
commitba43cb0c817dfbc2d51e8cda98330941e10876de
tree6d95abdcbaf95336d685ab40f20c49fc3ab1e668
parent9bd34a41737e49321db885b48ee299976e1cb09f
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
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
GVS: Gerrit_Virtual_Submit
sound/soc/tegra/tegra_rt5640.c