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

Inki Dae inki.dae at samsung.com
Wed Oct 31 01:42:21 PDT 2012


2012/10/31 Rahul Sharma <rahul.sharma at samsung.com>:
> Removing the warning by adding proper type casting where local pointer
> variable of type mixer driver data is assigned with void pointer.
>
> This patch is based on branch exynos-drm-next at
> git://git.infradead.org/users/kmpark/linux-samsung
>

It's better to go to -fixes. So will apply it to -fixes.

Thanks,
Inki Dae

> Signed-off-by: Rahul Sharma <rahul.sharma at samsung.com>
> ---
>  drivers/gpu/drm/exynos/exynos_mixer.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
> index 614b2e9..e7fbb82 100644
> --- a/drivers/gpu/drm/exynos/exynos_mixer.c
> +++ b/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;
>                 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;
> --
> 1.7.0.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list