diff mbox

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

Message ID 1351656386-22851-1-git-send-email-rahul.sharma@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rahul Sharma Oct. 31, 2012, 4:06 a.m. UTC
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

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_mixer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Inki Dae Oct. 31, 2012, 8:42 a.m. UTC | #1
2012/10/31 Rahul Sharma <rahul.sharma@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@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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

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;