diff mbox

[6/8,media] exynos-gsc: Fix compilation warning

Message ID 1350472311-9748-6-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Oct. 17, 2012, 11:11 a.m. UTC
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>
---
 drivers/media/platform/exynos-gsc/gsc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sylwester Nawrocki Oct. 20, 2012, 9:55 a.m. UTC | #1
On 10/17/2012 01:11 PM, Sachin Kamat wrote:
> 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

Applied to my tree, thanks.
diff mbox

Patch

diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index d11668b..9b86ef6 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;