diff options
author | Sanjay Singh Rawat <srawat@nvidia.com> | 2012-07-06 18:08:12 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-07-09 16:38:54 -0700 |
commit | dc740e3692d951b15a598644f10f298e72d4312f (patch) | |
tree | ac14198f16afcd993c977cd4ee85c2981bbb88f4 /drivers | |
parent | 9985ff4377dabeed91a3595063944615a57739cb (diff) |
video: tegra: host: resolve compilation time warnings
- Handled warning of, possible use of uninitialized variable and unused
function.
bug 949219
Change-Id: I0d7d345e66774f08e52a12e653a5e7aa6a7a8591
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/113905
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/host/isp/isp.c | 4 | ||||
-rw-r--r-- | drivers/video/tegra/host/nvhost_job.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/isp/isp.c b/drivers/video/tegra/host/isp/isp.c index 33f9cf947820..0a3cc3b03578 100644 --- a/drivers/video/tegra/host/isp/isp.c +++ b/drivers/video/tegra/host/isp/isp.c @@ -33,24 +33,24 @@ static int __devinit isp_probe(struct nvhost_device *dev, return nvhost_client_device_init(dev); } -#ifdef CONFIG_PM static int __exit isp_remove(struct nvhost_device *dev) { /* Add clean-up */ return 0; } +#ifdef CONFIG_PM static int isp_suspend(struct nvhost_device *dev, pm_message_t state) { return nvhost_client_device_suspend(dev); } -#endif static int isp_resume(struct nvhost_device *dev) { dev_info(&dev->dev, "resuming\n"); return 0; } +#endif static struct nvhost_driver isp_driver = { .probe = isp_probe, diff --git a/drivers/video/tegra/host/nvhost_job.c b/drivers/video/tegra/host/nvhost_job.c index fb8a61c884e9..f93d7df1a552 100644 --- a/drivers/video/tegra/host/nvhost_job.c +++ b/drivers/video/tegra/host/nvhost_job.c @@ -160,7 +160,7 @@ void nvhost_job_add_gather(struct nvhost_job *job, static int do_relocs(struct nvhost_job *job, u32 cmdbuf_mem, void *cmdbuf_addr) { - phys_addr_t target_phys; + phys_addr_t target_phys = -EINVAL; int i; u32 mem_id = 0; struct mem_handle *target_ref = NULL; |