summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/ti-vpe/csc.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-11-05 05:03:00 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-05 09:09:26 -0200
commit3f7991357f6b33c82bf2135725847970ffd2ed83 (patch)
treed0f349200099f0b53677e9acf17fe76be203efaf /drivers/media/platform/ti-vpe/csc.c
parentd674a6547c67907ad754a4b5223e2044ea8e0daa (diff)
downloadlinux-3f7991357f6b33c82bf2135725847970ffd2ed83.tar.bz2
[media] ti-vpe: fix sparse warnings
sc.c:303:26: warning: incorrect type in return expression (different address spaces) csc.c:188:27: warning: incorrect type in return expression (different address spaces) Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/ti-vpe/csc.c')
-rw-r--r--drivers/media/platform/ti-vpe/csc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/csc.c b/drivers/media/platform/ti-vpe/csc.c
index 44fbf41fba7f..bec674994752 100644
--- a/drivers/media/platform/ti-vpe/csc.c
+++ b/drivers/media/platform/ti-vpe/csc.c
@@ -185,7 +185,7 @@ struct csc_data *csc_create(struct platform_device *pdev)
csc->base = devm_ioremap_resource(&pdev->dev, csc->res);
if (IS_ERR(csc->base)) {
dev_err(&pdev->dev, "failed to ioremap\n");
- return csc->base;
+ return ERR_CAST(csc->base);
}
return csc;