media: tegra: fix regulator_get return value check
authorMallikarjun Kasoju <mkasoju@nvidia.com>
Fri, 22 Nov 2013 10:23:28 +0000 (15:23 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Mon, 25 Nov 2013 09:36:58 +0000 (01:36 -0800)
commit79b91414723812538e46151b30ff07b8b81728a6
tree9bd5f2cbb4b8104a915b6347c1930a9bb2643032
parente08c5b75b14b81ddacfd423727a87e7a020934ca
media: tegra: fix regulator_get return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR().

Bug 1410234

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

Change-Id: Ic1caa1433f4ee9b49eca3309970cac82d1ab7d6a
Reviewed-on: http://git-master/r/334473
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/media/platform/tegra/ad5820.c
drivers/media/platform/tegra/ar0832_main.c
drivers/media/platform/tegra/as364x.c
drivers/media/platform/tegra/cam_dev/dev_access.c
drivers/media/platform/tegra/imx135.c
drivers/media/platform/tegra/lm3565.c
drivers/media/platform/tegra/max77387.c
drivers/media/platform/tegra/max77665-flash.c
drivers/media/platform/tegra/ov9726.c
drivers/media/platform/tegra/sh532u.c
drivers/media/platform/tegra/tps61050.c