summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat2012-10-17 12:11:49 +0200
committerMauro Carvalho Chehab2012-10-25 18:34:17 +0200
commit5631a7d74d0b7a113b64e2cac99bea1e7603442f (patch)
tree7256665e307bcd4d305b3d3dd67a789e8254b20f
parent[media] s5p-mfc: Fix compilation warning (diff)
downloadkernel-qcow2-linux-5631a7d74d0b7a113b64e2cac99bea1e7603442f.tar.gz
kernel-qcow2-linux-5631a7d74d0b7a113b64e2cac99bea1e7603442f.tar.xz
kernel-qcow2-linux-5631a7d74d0b7a113b64e2cac99bea1e7603442f.zip
[media] exynos-gsc: Fix compilation warning
Used type casting to avoid the following compilation warning: drivers/media/platform/exynos-gsc/gsc-core.c:983:37: warning: incorrect type in assignment (different modifiers) drivers/media/platform/exynos-gsc/gsc-core.c:983:37: expected struct gsc_driverdata *driver_data drivers/media/platform/exynos-gsc/gsc-core.c:983:37: got void const *data Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index bfec9e65aefb..949c93ceaab1 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -980,7 +980,7 @@ static void *gsc_get_drv_data(struct platform_device *pdev)
match = of_match_node(of_match_ptr(exynos_gsc_match),
pdev->dev.of_node);
if (match)
- driver_data = match->data;
+ driver_data = (struct gsc_driverdata *)match->data;
} else {
driver_data = (struct gsc_driverdata *)
platform_get_device_id(pdev)->driver_data;