diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-05 03:03:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-05 06:09:26 -0500 |
commit | 3f7991357f6b33c82bf2135725847970ffd2ed83 (patch) | |
tree | d0f349200099f0b53677e9acf17fe76be203efaf /drivers/media/platform/ti-vpe | |
parent | d674a6547c67907ad754a4b5223e2044ea8e0daa (diff) |
[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')
-rw-r--r-- | drivers/media/platform/ti-vpe/csc.c | 2 | ||||
-rw-r--r-- | drivers/media/platform/ti-vpe/sc.c | 2 |
2 files changed, 2 insertions, 2 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) | |||
185 | csc->base = devm_ioremap_resource(&pdev->dev, csc->res); | 185 | csc->base = devm_ioremap_resource(&pdev->dev, csc->res); |
186 | if (IS_ERR(csc->base)) { | 186 | if (IS_ERR(csc->base)) { |
187 | dev_err(&pdev->dev, "failed to ioremap\n"); | 187 | dev_err(&pdev->dev, "failed to ioremap\n"); |
188 | return csc->base; | 188 | return ERR_CAST(csc->base); |
189 | } | 189 | } |
190 | 190 | ||
191 | return csc; | 191 | return csc; |
diff --git a/drivers/media/platform/ti-vpe/sc.c b/drivers/media/platform/ti-vpe/sc.c index 1088381bd349..f82d1c7f667f 100644 --- a/drivers/media/platform/ti-vpe/sc.c +++ b/drivers/media/platform/ti-vpe/sc.c | |||
@@ -300,7 +300,7 @@ struct sc_data *sc_create(struct platform_device *pdev) | |||
300 | sc->base = devm_ioremap_resource(&pdev->dev, sc->res); | 300 | sc->base = devm_ioremap_resource(&pdev->dev, sc->res); |
301 | if (IS_ERR(sc->base)) { | 301 | if (IS_ERR(sc->base)) { |
302 | dev_err(&pdev->dev, "failed to ioremap\n"); | 302 | dev_err(&pdev->dev, "failed to ioremap\n"); |
303 | return sc->base; | 303 | return ERR_CAST(sc->base); |
304 | } | 304 | } |
305 | 305 | ||
306 | return sc; | 306 | return sc; |