RE: [PATCH 2/2] [media] s5p-mfc: Remove redundant use of of_match_ptr macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sachin,

Thank you for your patch.

Best wishes,
-- 
Kamil Debski
Linux Kernel Developer
Samsung R&D Institute Poland


> -----Original Message-----
> From: Sachin Kamat [mailto:sachin.kamat@xxxxxxxxxx]
> Sent: Thursday, May 23, 2013 6:51 AM
> To: linux-media@xxxxxxxxxxxxxxx
> Cc: s.nawrocki@xxxxxxxxxxx; sylvester.nawrocki@xxxxxxxxx;
> sachin.kamat@xxxxxxxxxx; patches@xxxxxxxxxx; Kamil Debski
> Subject: [PATCH 2/2] [media] s5p-mfc: Remove redundant use of
> of_match_ptr macro
> 
> 'exynos_mfc_match' is always compiled in. Hence of_match_ptr is
> unnecessary.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
> Cc: Kamil Debski <k.debski@xxxxxxxxxxx>

Acked-by: Kamil Debski <k.debski@xxxxxxxxxxx>

> ---
>  drivers/media/platform/s5p-mfc/s5p_mfc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c
> b/drivers/media/platform/s5p-mfc/s5p_mfc.c
> index 01f9ae0..5d0419b 100644
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
> @@ -1426,7 +1426,7 @@ static void *mfc_get_drv_data(struct
> platform_device *pdev)
> 
>  	if (pdev->dev.of_node) {
>  		const struct of_device_id *match;
> -		match = of_match_node(of_match_ptr(exynos_mfc_match),
> +		match = of_match_node(exynos_mfc_match,
>  				pdev->dev.of_node);
>  		if (match)
>  			driver_data = (struct s5p_mfc_variant *)match->data;
> --
> 1.7.9.5


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux