diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-10-17 06:11:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-25 12:34:17 -0400 |
commit | 5631a7d74d0b7a113b64e2cac99bea1e7603442f (patch) | |
tree | 7256665e307bcd4d305b3d3dd67a789e8254b20f /drivers/media/platform/exynos-gsc | |
parent | e1393b5992b2b5b20b086c5f587e6c269d68e157 (diff) |
[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>
Diffstat (limited to 'drivers/media/platform/exynos-gsc')
-rw-r--r-- | drivers/media/platform/exynos-gsc/gsc-core.c | 2 |
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) | |||
980 | match = of_match_node(of_match_ptr(exynos_gsc_match), | 980 | match = of_match_node(of_match_ptr(exynos_gsc_match), |
981 | pdev->dev.of_node); | 981 | pdev->dev.of_node); |
982 | if (match) | 982 | if (match) |
983 | driver_data = match->data; | 983 | driver_data = (struct gsc_driverdata *)match->data; |
984 | } else { | 984 | } else { |
985 | driver_data = (struct gsc_driverdata *) | 985 | driver_data = (struct gsc_driverdata *) |
986 | platform_get_device_id(pdev)->driver_data; | 986 | platform_get_device_id(pdev)->driver_data; |