drm: exynos: removed warning due to missing typecast for mixer driver data
authorRahul Sharma <rahul.sharma@samsung.com>
Wed, 31 Oct 2012 04:06:26 +0000 (09:36 +0530)
committerInki Dae <daeinki@gmail.com>
Wed, 31 Oct 2012 13:11:40 +0000 (06:11 -0700)
Removing the warning by adding proper type casting where local pointer
variable of type mixer driver data is assigned with void pointer.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c

index 614b2e9..e7fbb82 100644 (file)
@@ -1142,7 +1142,7 @@ static int __devinit mixer_probe(struct platform_device *pdev)
                const struct of_device_id *match;
                match = of_match_node(of_match_ptr(mixer_match_types),
                                                          pdev->dev.of_node);
-               drv = match->data;
+               drv = (struct mixer_drv_data *)match->data;
        } else {
                drv = (struct mixer_drv_data *)
                        platform_get_device_id(pdev)->driver_data;