Re: [PATCH -next 3/5] ASoC: sunxi: sun4i-spdif: Remove redundant of_match_ptr()

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

 



Dne petek, 11. avgust 2023 ob 09:14:24 CEST je Ruan Jinjie napisal(a):
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@xxxxxxxxxx>

Acked-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>

Best regards,
Jernej

> ---
>  sound/soc/sunxi/sun4i-spdif.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c
> index ff18d4113aac..c2b55d2e5fe1 100644
> --- a/sound/soc/sunxi/sun4i-spdif.c
> +++ b/sound/soc/sunxi/sun4i-spdif.c
> @@ -718,7 +718,7 @@ static const struct dev_pm_ops sun4i_spdif_pm = {
>  static struct platform_driver sun4i_spdif_driver = {
>  	.driver		= {
>  		.name	= "sun4i-spdif",
> -		.of_match_table = of_match_ptr(sun4i_spdif_of_match),
> +		.of_match_table = sun4i_spdif_of_match,
>  		.pm	= &sun4i_spdif_pm,
>  	},
>  	.probe		= sun4i_spdif_probe,







[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux