Răsfoiți Sursa

drm: exynos: removed warning due to missing typecast for mixer driver data

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>
Rahul Sharma 13 ani în urmă
părinte
comite
2cdc53b355
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/gpu/drm/exynos/exynos_mixer.c

+ 1 - 1
drivers/gpu/drm/exynos/exynos_mixer.c

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